]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: check if pages is null rather than bv for a failed allocation
authorColin Ian King <colin.king@canonical.com>
Wed, 17 May 2017 18:24:15 +0000 (19:24 +0100)
committerSteve French <smfrench@gmail.com>
Wed, 21 Jun 2017 00:11:35 +0000 (19:11 -0500)
commitceb2eb3086d9465ed372bacc2421f6f34577b924
treec76212d915c9751d44386dcbb47c78bb182a35fb
parent6397d6aae84364e76c1a4c759fdb2367019ab05d
CIFS: check if pages is null rather than bv for a failed allocation

pages is being allocated however a null check on bv is being used
to see if the allocation failed. Fix this by checking if pages is
null.

Detected by CoverityScan, CID#1432974 ("Logically dead code")

Fixes: f30891cbf1fb26 ("CIFS: Add asynchronous context to support kernel AIO")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/misc.c