Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 fe22e1c2f705 ("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: fe22e1c2f705 ("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>

authored by

Niklas Cassel and committed by
Damien Le Moal
a6bee5e5 ce83767e

+1 -1
+1 -1
drivers/ata/libata-core.c
··· 2872 2872 2873 2873 static void ata_dev_print_features(struct ata_device *dev) 2874 2874 { 2875 - if (!(dev->flags & ATA_DFLAG_FEATURES_MASK)) 2875 + if (!(dev->flags & ATA_DFLAG_FEATURES_MASK) && !dev->cpr_log) 2876 2876 return; 2877 2877 2878 2878 ata_dev_info(dev,