Re: [PATCH] ata: libata-eh: fix sloppy result type of ata_internal_cmd_timeout()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/19/22 05:38, Sergey Shtylyov wrote:
> ata_internal_cmd_timeout() returns *unsigned long* timeout in ms, however
> ata_exec_internal_sg() passes that timeout to msecs_to_jiffies() that takes
> just *unsigned int*.  Change ata_internal_cmd_timeout()'s result type to
> *unsigned int* as well, also updating the *struct* ata_eh_cmd_timeout_ent
> and the command timeout tables -- all timeouts fit into *unsigned int* but
> we have to change ULONG_MAX to UINT_MAX...
> 
> Signed-off-by: Sergey Shtylyov <s.shtylyov@xxxxxx>

Applied to for-5.20. Thanks !


-- 
Damien Le Moal
Western Digital Research



[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux