Skip to content

Commit 5b2ff48

Browse files
dhowellssmfrench
authored andcommitted
cifs: Fix TCP_Server_Info::credits to be signed
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]>
1 parent 5da6fb6 commit 5b2ff48

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
@@ -732,7 +732,7 @@ struct TCP_Server_Info {
732732
bool nosharesock;
733733
bool tcp_nodelay;
734734
bool terminate;
735-
unsigned int credits; /* send no more requests at once */
735+
int credits; /* send no more requests at once */
736736
unsigned int max_credits; /* can override large 32000 default at mnt */
737737
unsigned int in_flight; /* number of requests on the wire to server */
738738
unsigned int max_in_flight; /* max number of requests that were on wire */

0 commit comments

Comments
 (0)