aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2024-02-19 16:44:30 +0100
committerNiklas Cassel <[email protected]>2024-02-21 19:09:17 +0100
commit9cec467d0502b24660f413a0e8fc782903b46d5b (patch)
tree0707aeb8285292d235cef8766e04cdfa7ae68590 /lib/test_fortify/write_overflow-strncpy-src.c
parent26c8404e162b43dddcb037ba2d0cb58c0ed60aab (diff)
ata: libata-core: Do not call ata_dev_power_set_standby() twice
For regular system shutdown, ata_dev_power_set_standby() will be executed twice: once the scsi device is removed and another when ata_pci_shutdown_one() executes and EH completes unloading the devices. Make the second call to ata_dev_power_set_standby() do nothing by using ata_dev_power_is_active() and return if the device is already in standby. Fixes: 2da4c5e24e86 ("ata: libata-core: Improve ata_dev_power_set_active()") Cc: [email protected] Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Niklas Cassel <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions