ksmbd: smbd: change the return value of get_sg_list
authorHyunchul Lee <hyc.lee@gmail.com>
Fri, 29 Apr 2022 23:30:28 +0000 (08:30 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 21 May 2022 20:01:38 +0000 (15:01 -0500)
commit4e3edd0092704b25626a0fe60a974f6f382ff93d
treeb71d0371cbf97c073874f917f4e57e538eccd564
parent11659a8ddbd9c4c1ab6f3b8f52837178ef121b20
ksmbd: smbd: change the return value of get_sg_list

Make get_sg_list return EINVAL if there aren't
mapped scatterlists.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/transport_rdma.c