ata: libata-core: Check errors in sata_print_link_status()
authorLi Zhong <floridsleeves@gmail.com>
Sat, 3 Sep 2022 23:10:39 +0000 (16:10 -0700)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Fri, 16 Sep 2022 14:24:06 +0000 (23:24 +0900)
commit55d5ba550535c970c03cd0d0008ad1d61b238be4
treec38cf4c81a3d5f8508b8b889cb2b18e840880032
parent03070458d700242f1caf6ede4225a728145ccd77
ata: libata-core: Check errors in sata_print_link_status()

sata_scr_read() could return negative error code on failure. Check the
return value when reading the control register.

Signed-off-by: Li Zhong <floridsleeves@gmail.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/libata-core.c