Skip to content
Commit 06f6c4c6 authored by Damien Le Moal's avatar Damien Le Moal
Browse files

ata: libata: add missing ata_identify_page_supported() calls



ata_dev_config_ncq_prio() and ata_dev_config_devslp() both access pages
of the IDENTIFY DEVICE data log. Before calling ata_read_log_page(),
make sure to check for the existence of the IDENTIFY DEVICE data log and
of the log page accessed using ata_identify_page_supported(). This
avoids useless error messages from ata_read_log_page() and failures with
some LLDD scsi drivers using libsas.

Reported-by: default avatarNikolay <knv418@gmail.com>
Cc: stable@kernel.org # 5.15
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: default avatarMatthew Perkowski <mgperkow@gmail.com>
parent 23ef63d5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment