Skip to content

Commit a6bee5e

Browse files
floatiousdamien-lemoal
authored andcommitted
ata: libata: Add cpr_log to ata_dev_print_features() early return
ata_dev_print_features() is supposed to return early and not print anything if there are no features supported. However, commit fe22e1c ("libata: support concurrent positioning ranges log") added another feature to ata_dev_print_features() without updating the early return conditional. Add the missing feature to the early return conditional. Fixes: fe22e1c ("libata: support concurrent positioning ranges log") Signed-off-by: Niklas Cassel <cassel@kernel.org> Tested-by: Wolf <wolf@yoxt.cc> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
1 parent ce83767 commit a6bee5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ata/libata-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@ static void ata_dev_config_lpm(struct ata_device *dev)
28722872

28732873
static void ata_dev_print_features(struct ata_device *dev)
28742874
{
2875-
if (!(dev->flags & ATA_DFLAG_FEATURES_MASK))
2875+
if (!(dev->flags & ATA_DFLAG_FEATURES_MASK) && !dev->cpr_log)
28762876
return;
28772877

28782878
ata_dev_info(dev,

0 commit comments

Comments
 (0)