]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/scsi/sd.c
udmabuf: separate out creating/destroying scatter-table
[linux.git] / drivers / scsi / sd.c
index 50928bc266eb24d5995affc32f7de12ec1ca49b2..03163ac5fe9583362491efa831275c77a59e6122 100644 (file)
@@ -1654,7 +1654,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;