diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2021-03-19 13:51:15 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-05-10 19:15:21 -0500 |
commit | bc3fcc9462ef4ba3ae66593cbaf47bf7af703ed3 (patch) | |
tree | 1f5310467bc3e0ea20671e6d4c1848f715d31e7f | |
parent | a2ba2709f5e465b316ef1f18605190d249847aad (diff) |
cifsd: fix static checker warning from smb_direct_post_send_data()
Dan reported static checker warning:
fs/cifsd/transport_rdma.c:1168 smb_direct_post_send_data()
warn: missing error code 'ret'
This patch add missing ret error code.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r-- | fs/cifsd/transport_rdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifsd/transport_rdma.c b/fs/cifsd/transport_rdma.c index d235051dc5b1a..45b76847f1e7a 100644 --- a/fs/cifsd/transport_rdma.c +++ b/fs/cifsd/transport_rdma.c @@ -1165,6 +1165,7 @@ static int smb_direct_post_send_data(struct smb_direct_transport *t, sg, SMB_DIRECT_MAX_SEND_SGES-1, DMA_TO_DEVICE); if (sg_cnt <= 0) { ksmbd_err("failed to map buffer\n"); + ret = -ENOMEM; goto err; } else if (sg_cnt + msg->num_sge > SMB_DIRECT_MAX_SEND_SGES-1) { ksmbd_err("buffer not fitted into sges\n"); |