A couple of fixes for CDL support. The first patch addresses a potential NULL pointer dereference in ata_msense_control_spgt2() with drives not supporting CDL. The second patch fixes ata_msense_control() to report the correct T2A and T2B sub pages when CDL is supported. Damien Le Moal (2): ata: libata-scsi: Fix ata_msense_control_spgt2() ata: libata-scsi: Fix ata_msense_control() CDL page reporting drivers/ata/libata-scsi.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) -- 2.46.0