Re: [PATCH v3] scsi: handle out-of-range SG_SET_TIMEOUT values
From: Martin K. Petersen
Date: Fri Oct 23 2026 - 23:05:24 EST
> SG_SET_TIMEOUT accepts a signed int in USER_HZ units. The sg character
> device rejects negative values and limits positive values so the
> converted timeout fits its destination field. The block SCSI and BSG
> paths instead pass the value to clock_t_to_jiffies(), which accepts an
> unsigned long, and store the result in an unsigned int.
Applied to 7.4/scsi-staging, thanks!
--
Martin K. Petersen