mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
cifs: prevent truncation from long to int in wait_for_free_credits
[ Upstream commit 19e888678bac8c82206eb915eaf72741b2a2615c ] The wait_event_... defines evaluate to long so we should not assign it an int as this may truncate the value. Reported-by: Marshall Midden <[email protected]> Signed-off-by: Ronnie Sahlberg <[email protected]> Signed-off-by: Steve French <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
43046f7867
commit
91e81d2262
1 changed files with 1 additions and 1 deletions
|
|
@ -528,7 +528,7 @@ wait_for_free_credits(struct TCP_Server_Info *server, const int num_credits,
|
|||
const int timeout, const int flags,
|
||||
unsigned int *instance)
|
||||
{
|
||||
int rc;
|
||||
long rc;
|
||||
int *credits;
|
||||
int optype;
|
||||
long int t;
|
||||
|
|
|
|||
Loading…
Reference in a new issue