Skip to content

Commit

Permalink
cifs: Fix an uninitialised variable
Browse files Browse the repository at this point in the history
Fix an uninitialised variable introduced in cifs.

Fixes: 3d78fe7 ("cifs: Build the RDMA SGE list directly from an iterator")
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
cc: Steve French <sfrench@samba.org>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: Tom Talpey <tom@talpey.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: linux-rdma@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
dhowells authored and Steve French committed Mar 2, 2023
1 parent 1907e0f commit 4bd3e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/smbdirect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4bd3e4c

Please sign in to comment.