ksmbd: smbd: fix dma mapping error in smb_direct_post_send_data
authorHyunchul Lee <hyc.lee@gmail.com>
Mon, 30 Aug 2021 04:27:43 +0000 (13:27 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 4 Sep 2021 04:29:45 +0000 (23:29 -0500)
commit72d6cbb533d4309734606027fe083c4edb0aa7aa
treecc59411c0d3dc53e64f21b4b06ccf2ba1d21c090
parentd475866eeed89cc44ed54e0cd296537a68667b1b
ksmbd: smbd: fix dma mapping error in smb_direct_post_send_data

Becase smb direct header is mapped and msg->num_sge
already is incremented, the decrement should be
removed from the condition.

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