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)
commit19e888678bac8c82206eb915eaf72741b2a2615c
tree440458195001f15b8332ab4823def91f29c7e35a
parent9ffad9263b467efd8f8dc7ae1941a0a655a2bab2
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