]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: handle errors from coalesce_t2
authorJeff Layton <jlayton@redhat.com>
Fri, 29 Apr 2011 10:52:44 +0000 (06:52 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 3 May 2011 03:42:15 +0000 (03:42 +0000)
commit4509bc752a31e61bfb38709933c2a9d5e459da9b
tree3ff03fa9202ba3bbe4aee3d036cddd6f0dbaceba
parentf27269cd85742787f2d380e7d79aa76261882172
cifs: handle errors from coalesce_t2

cifs_demultiplex_thread calls coalesce_t2 to try and merge follow-on t2
responses into the original mid buffer. coalesce_t2 however can return
errors, but the caller doesn't handle that situation properly. Fix the
thread to treat such a case as it would a malformed packet. Mark the
mid as being malformed and issue the callback.

Cc: stable@kernel.org
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c