Skip to content

Commit bedb74f

Browse files
dhowellsgregkh
authored andcommitted
cifs: Fix TCP_Server_Info::credits to be signed
commit 5b2ff48 upstream. Fix TCP_Server_Info::credits to be signed, just as echo_credits and oplock_credits are. This also fixes what ought to get at least a compilation warning if not an outright error in *get_credits_field() as a pointer to the unsigned server->credits field is passed back as a pointer to a signed int. Signed-off-by: David Howells <[email protected]> cc: [email protected] Cc: [email protected] Acked-by: Paulo Alcantara (Red Hat) <[email protected]> Acked-by: Pavel Shilovskiy <[email protected]> Signed-off-by: Steve French <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7637d01 commit bedb74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/cifsglob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ struct TCP_Server_Info {
740740
bool nosharesock;
741741
bool tcp_nodelay;
742742
bool terminate;
743-
unsigned int credits; /* send no more requests at once */
743+
int credits; /* send no more requests at once */
744744
unsigned int max_credits; /* can override large 32000 default at mnt */
745745
unsigned int in_flight; /* number of requests on the wire to server */
746746
unsigned int max_in_flight; /* max number of requests that were on wire */

0 commit comments

Comments
 (0)