]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpt3sas: Fix ioctl timeout
authorSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Wed, 25 Nov 2020 09:48:38 +0000 (15:18 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Dec 2020 05:28:41 +0000 (00:28 -0500)
commit1221d3187e4085c5c9ea2f32b2b0e549a86ad2d6
tree02338d08835f02da2bd31771cf74dbf83d1858be
parentf8733df31e36fb453fbdf830e89571f5cf21034b
scsi: mpt3sas: Fix ioctl timeout

Commit 74418d2a0bd2 ("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: 74418d2a0bd2 ("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>
drivers/scsi/mpt3sas/mpt3sas_ctl.c