Commit 06f6c4c
Damien Le Moal
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: Nikolay <knv418@gmail.com>
Cc: stable@kernel.org # 5.15
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Matthew Perkowski <mgperkow@gmail.com>1 parent 23ef63d commit 06f6c4c
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2178 | 2178 | | |
2179 | 2179 | | |
2180 | 2180 | | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
2181 | 2184 | | |
2182 | 2185 | | |
2183 | 2186 | | |
| |||
2454 | 2457 | | |
2455 | 2458 | | |
2456 | 2459 | | |
2457 | | - | |
| 2460 | + | |
| 2461 | + | |
2458 | 2462 | | |
2459 | 2463 | | |
2460 | 2464 | | |
| |||
0 commit comments