]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifsd: Fix an error code in smb2_read()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 22 Mar 2021 14:50:11 +0000 (17:50 +0300)
committerSteve French <stfrench@microsoft.com>
Mon, 19 Apr 2021 00:20:49 +0000 (19:20 -0500)
commit3ada5c1c27caa8abe7853179c32ea7389a6dd5a9
tree42dd961ed77ed9a881e8dda035a54b0d8f92001c
parent978080ef559b348cdc676bef8dca05676a3f9b37
cifsd: Fix an error code in smb2_read()

This code is assigning the wrong variable to "err" so it returns
zero/success instead of -ENOMEM.

Fixes: 788b6f45c1d2 ("cifsd: add server-side procedures for SMB3")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/smb2pdu.c