diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 2baaf042da7ccb026e76da3632c0552ca2277f27..f9d02f638c43b9f3e584f0a208ea0f4a18830da4 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -1651,7 +1651,8 @@ static int sd_sync_cache(struct scsi_disk *sdkp, struct scsi_sense_hdr *sshdr) /* we need to evaluate the error return */ if (scsi_sense_valid(sshdr) && (sshdr->asc == 0x3a || /* medium not present */ - sshdr->asc == 0x20)) /* invalid command */ + sshdr->asc == 0x20 || /* invalid command */ + (sshdr->asc == 0x74 && sshdr->ascq == 0x71))) /* drive is password locked */ /* this is no error here */ return 0;