diff options
author | Zheyu Ma <zheyuma97@gmail.com> | 2021-10-22 09:12:26 +0000 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2021-10-25 08:53:04 +0900 |
commit | a0023bb9dd9bc439d44604eeec62426a990054cd (patch) | |
tree | b3d0dcf247ebd8ef3add3c8af88f41228e5713c3 /lib/zstd/common/debug.c | |
parent | 776c75010803849c1cc4f11031a2b3960ab05202 (diff) |
ata: sata_mv: Fix the error handling of mv_chip_id()
mv_init_host() propagates the value returned by mv_chip_id() which in turn
gets propagated by mv_pci_init_one() and hits local_pci_probe().
During the process of driver probing, the probe function should return < 0
for failure, otherwise, the kernel will treat value > 0 as success.
Since this is a bug rather than a recoverable runtime error we should
use dev_alert() instead of dev_err().
Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'lib/zstd/common/debug.c')
0 files changed, 0 insertions, 0 deletions