CIFS: Fix possible oops and memory leaks in async IO
authorPavel Shilovsky <pshilov@microsoft.com>
Thu, 24 Jan 2019 01:12:09 +0000 (17:12 -0800)
committerSteve French <stfrench@microsoft.com>
Tue, 29 Jan 2019 23:19:47 +0000 (17:19 -0600)
commit9bda8723da2d55b1de833b98cf802b88006e5b69
tree6e4bc7fe28000e5bba3674b5110f2bb91bb5999d
parentc4627e66f73a28c5515b908c90c2bf7120086497
CIFS: Fix possible oops and memory leaks in async IO

Allocation of a page array for non-cached IO was separated from
allocation of rdata and wdata structures and this introduced memory
leaks and a possible null pointer dereference. This patch fixes
these problems.

Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c