Skip to content

Commit 4bd3e4c

Browse files
dhowellssmfrench
authored andcommitted
cifs: Fix an uninitialised variable
Fix an uninitialised variable introduced in cifs. Fixes: 3d78fe7 ("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]>
1 parent 1907e0f commit 4bd3e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/smbdirect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ static int smbd_post_send_iter(struct smbd_connection *info,
837837
int data_length;
838838
struct smbd_request *request;
839839
struct smbd_data_transfer *packet;
840-
int new_credits;
840+
int new_credits = 0;
841841

842842
wait_credit:
843843
/* Wait for send credits. A SMBD packet needs one credit */

0 commit comments

Comments
 (0)