Pavel Shilovsky 350be257ea CIFS: Fix null pointer deref during read resp processing
Currently during receiving a read response mid->resp_buf can be
NULL when it is being passed to cifs_discard_remaining_data() from
cifs_readv_discard(). Fix it by always passing server->smallbuf
instead and initializing mid->resp_buf at the end of read response
processing.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Acked-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
2017-04-10 23:36:38 -05:00
..
2016-10-13 19:48:11 -05:00
2017-03-02 23:11:54 -06:00
2017-04-07 08:04:41 -05:00
2017-04-07 08:04:41 -05:00
2017-04-07 08:04:41 -05:00
2017-04-07 08:04:40 -05:00
2013-11-08 05:57:46 +09:00
2017-04-07 08:04:41 -05:00
2016-12-15 00:21:37 -06:00
2014-12-14 14:55:57 -06:00
2017-01-14 14:58:29 -06:00
2017-03-02 23:13:37 -06:00
2017-03-02 23:13:37 -06:00
2017-04-07 08:04:40 -05:00
2017-04-07 08:04:40 -05:00
2012-07-24 10:25:13 -05:00
2017-04-07 08:04:40 -05:00
2017-04-07 08:04:40 -05:00
2013-09-08 14:54:24 -05:00