diff options
author | Suganath Prabu S <suganath-prabu.subramani@broadcom.com> | 2020-11-25 12:48:38 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-11 15:25:02 +0300 |
commit | 28fc3bd2ab22f332072767f52afa0850b69afeb4 (patch) | |
tree | a1dcc09c702dcc9d66d94f00e92ab1d259103e1d /mm/page-writeback.c | |
parent | e5da5a2a68372256464644c365694fdbd749f361 (diff) | |
download | linux-28fc3bd2ab22f332072767f52afa0850b69afeb4.tar.xz |
scsi: mpt3sas: Fix ioctl timeout
commit 42f687038bcc34aa919e0e4c29b04e4cda3f6a79 upstream.
Commit c1a6c5ac4278 ("scsi: mpt3sas: For NVME device, issue a protocol
level reset") modified the ioctl path 'timeout' variable type to u8 from
unsigned long, limiting the maximum timeout value that the driver can
support to 255 seconds.
If the management application is requesting a higher value the resulting
timeout will be zero. The operation times out immediately and the ioctl
request fails.
Change datatype back to unsigned long.
Link: https://lore.kernel.org/r/20201125094838.4340-1-suganath-prabu.subramani@broadcom.com
Fixes: c1a6c5ac4278 ("scsi: mpt3sas: For NVME device, issue a protocol level reset")
Cc: <stable@vger.kernel.org> #v4.18+
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions