diff options
author | Sergey Shtylyov <s.shtylyov@omp.ru> | 2022-06-15 21:38:21 +0200 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-06-20 01:21:57 +0200 |
commit | 61176eed36d3a91305df6417be74755703a7db27 (patch) | |
tree | 2a162d12c8b84fc635730a5280994623abdecd4a /drivers/ata/libata-eh.c | |
parent | ata: make ata_port::fastdrain_cnt *unsigned int* (diff) | |
download | linux-61176eed36d3a91305df6417be74755703a7db27.tar.xz linux-61176eed36d3a91305df6417be74755703a7db27.zip |
ata: libata-core: fix sloppy parameter type in ata_exec_internal[_sg]()
Make the 'timeout' parameter to ata_exec_internal_sg() *unsigned int* as
msecs_to_jiffies() that it calls takes just *unsigned int* for the time in
milliseconds. Then follow the suit with ata_exec_internal(), its only
caller; also fix up ata_dev_set_feature(), the only ata_exec_internal()'s
caller that explicitly passes *unsigned long* variable for timeout...
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 'drivers/ata/libata-eh.c')
0 files changed, 0 insertions, 0 deletions