Jeff Layton <jlayton@xxxxxxxxxx> wrote: > + /* don't allow buffer to overflow */ > + if (byte_count > CIFSMaxBufSize) > + return -ENOBUFS; Shouldn't that be EPROTO too? (ENOBUFS would seem to be wrong anyway). > + if (total_in_buf & USHRT_MAX) > + if (byte_count & USHRT_MAX) Use '>' rather than '&'. '&' is wrong without a '~'. David -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html