CIFS: Fix possible oops and memory leaks in async IO
mainline inclusion from mainline-v5.0-rc4-4-g9bda872 commit 9bda8723da2d category: bugfix bugzilla: 7426 CVE: NA ------------------------------------------------- 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. conflict: fs/cifs/file.c Cc: <stable@vger.kernel.org> Signed-off-by: NPavel Shilovsky <pshilov@microsoft.com> Signed-off-by: NSteve French <stfrench@microsoft.com> Signed-off-by: NZhangXiaoxu <zhangxiaoxu5@huawei.com> Reviewed-by: NMiao Xie <miaoxie@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录