Skip to content

Commit 9f6bd36

Browse files
committed
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: libata: fix oops when LPM is used with PMP
2 parents 05bf86b + 5f6f12c commit 9f6bd36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/ata/libata-eh.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3316,7 +3316,7 @@ static int ata_eh_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
33163316
struct ata_eh_context *ehc = &link->eh_context;
33173317
struct ata_device *dev, *link_dev = NULL, *lpm_dev = NULL;
33183318
enum ata_lpm_policy old_policy = link->lpm_policy;
3319-
bool no_dipm = ap->flags & ATA_FLAG_NO_DIPM;
3319+
bool no_dipm = link->ap->flags & ATA_FLAG_NO_DIPM;
33203320
unsigned int hints = ATA_LPM_EMPTY | ATA_LPM_HIPM;
33213321
unsigned int err_mask;
33223322
int rc;

0 commit comments

Comments
 (0)