Re: [PATCH] ata: libata-core: fix parameter type in ata_xfer_mode2shift()

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

 



On 4/10/22 04:13, Sergey Shtylyov wrote:
> The data transfer mode that corresponds to the 'xfer_mode' parameter for
> ata_xfer_mode2shift() is a 8-bit *unsigned* value.  Using *unsigned long*
> to declare the parameter leads to a problematic implicit *int* to *unsigned
> long* cast and was most probably a result of a copy/paste mistake -- use
> the 'u8' type instead, as in ata_xfer_mode2mask()...
> 
> Found by Linux Verification Center (linuxtesting.org) with the SVACE static
> analysis tool.
> 
> Signed-off-by: Sergey Shtylyov <s.shtylyov@xxxxxx>

Applied to for-5.19. 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