diff options
author | 2022-04-09 22:13:56 +0300 | |
---|---|---|
committer | 2022-04-12 09:35:04 +0900 | |
commit | a28c1ab312712c26a8d004af1f68628d625dafac (patch) | |
tree | 11a5c5c0f62901c509c4843b627edb5291463a42 /include/linux/cc_platform.h | |
parent | libata: Improve ATA queued command allocation (diff) | |
download | wireguard-linux-a28c1ab312712c26a8d004af1f68628d625dafac.tar.xz wireguard-linux-a28c1ab312712c26a8d004af1f68628d625dafac.zip |
ata: libata-core: fix parameter type in ata_xfer_mode2shift()
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@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'include/linux/cc_platform.h')
0 files changed, 0 insertions, 0 deletions