aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2023-02-23 08:15:39 +0000
committerSteve French <[email protected]>2023-03-01 18:17:36 -0600
commit4bd3e4c7e4e552aa148edd3f2a2326ccc3011122 (patch)
treefe02e8e38ef36d42b5dc0057e6cd292c3aba456f
parent1907e0fec10c2498729d27550c460528e49abe1e (diff)
cifs: Fix an uninitialised variable
Fix an uninitialised variable introduced in cifs. Fixes: 3d78fe73fa12 ("cifs: Build the RDMA SGE list directly from an iterator") Signed-off-by: David Howells <[email protected]> Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> cc: Steve French <[email protected]> cc: Shyam Prasad N <[email protected]> cc: Rohith Surabattula <[email protected]> cc: Tom Talpey <[email protected]> cc: Jeff Layton <[email protected]> cc: [email protected] cc: [email protected] Signed-off-by: Steve French <[email protected]>
-rw-r--r--fs/cifs/smbdirect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
index 55b6e319a61d..0362ebd4fa0f 100644
--- a/fs/cifs/smbdirect.c
+++ b/fs/cifs/smbdirect.c
@@ -837,7 +837,7 @@ static int smbd_post_send_iter(struct smbd_connection *info,
int data_length;
struct smbd_request *request;
struct smbd_data_transfer *packet;
- int new_credits;
+ int new_credits = 0;
wait_credit:
/* Wait for send credits. A SMBD packet needs one credit */