Commit ba26eacc authored by Linus Torvalds's avatar Linus Torvalds

The SCSI layer should _not_ try to decide about non-existent

partitions. The higher layers do a better job of it.
parent fc94a878
......@@ -523,13 +523,6 @@ static int sd_open(struct inode *inode, struct file *filp)
if (!sdp->online) {
goto error_out;
}
/*
* See if we are requesting a non-existent partition. Do this
* after checking for disk change.
*/
if (sd[SD_PARTITION(inode->i_rdev)].nr_sects == 0) {
goto error_out;
}
if (sdp->removable)
if (sdp->access_count==1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment