From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH 5/5] cifs: handle errors from coalesce_t2 Date: Tue, 26 Apr 2011 15:40:00 +0100 Message-ID: <17961.1303828800@redhat.com> References: <1303819401-14789-6-git-send-email-jlayton@redhat.com> <1303819401-14789-1-git-send-email-jlayton@redhat.com> Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jeff Layton Return-path: In-Reply-To: <1303819401-14789-6-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Jeff Layton wrote: > 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-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org > Signed-off-by: Jeff Layton Acked-by: David Howells