]> git.hungrycats.org Git - linux/commitdiff
The SCSI layer should _not_ try to decide about non-existent
authorLinus Torvalds <torvalds@home.transmeta.com>
Fri, 30 Aug 2002 09:59:19 +0000 (02:59 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 30 Aug 2002 09:59:19 +0000 (02:59 -0700)
partitions. The higher layers do a better job of it.

drivers/scsi/sd.c

index 07e574bdcb4127f444a8bf4b6568dc265cbcb5f7..09f49e427f169089b2ba588c27c87e85e2332562 100644 (file)
@@ -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)