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 <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>
1 parent 1907e0f commit 4bd3e4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)