mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
scsi: mpt3sas: Fix ioctl timeout
commit42f687038bupstream. Commitc1a6c5ac42("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:c1a6c5ac42("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>
This commit is contained in:
parent
e5da5a2a68
commit
28fc3bd2ab
|
|
@ -654,7 +654,7 @@ _ctl_do_mpt_command(struct MPT3SAS_ADAPTER *ioc, struct mpt3_ioctl_command karg,
|
|||
struct _pcie_device *pcie_device = NULL;
|
||||
u32 ioc_state;
|
||||
u16 smid;
|
||||
u8 timeout;
|
||||
unsigned long timeout;
|
||||
u8 issue_reset;
|
||||
u32 sz, sz_arg;
|
||||
void *psge;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user