]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: prevent truncation from long to int in wait_for_free_credits
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 2 Jul 2020 00:55:41 +0000 (10:55 +1000)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Jul 2020 01:01:26 +0000 (20:01 -0500)
commit5700ea459cc15dd932ef7cdf781e2c4b26106883
tree440458195001f15b8332ab4823def91f29c7e35a
parent9818cc640feb8b0f27c0fa1decabaf0d3d3ca46f
cifs: prevent truncation from long to int in wait_for_free_credits

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 <marshallmidden@gmail.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/transport.c