]> Pileus Git - ~andy/linux/blobdiff - drivers/scsi/pmcraid.c
Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
[~andy/linux] / drivers / scsi / pmcraid.c
index 53aefffbaead2027c09d2da7925fe3c0afecb607..c44e4ab4e938db7a3d370d9406a801f324bc7132 100644 (file)
@@ -3751,12 +3751,6 @@ static int pmcraid_check_ioctl_buffer(
                return -EINVAL;
        }
 
-       /* buffer length can't be negetive */
-       if (hdr->buffer_length < 0) {
-               pmcraid_err("ioctl: invalid buffer length specified\n");
-               return -EINVAL;
-       }
-
        /* check for appropriate buffer access */
        if ((_IOC_DIR(cmd) & _IOC_READ) == _IOC_READ)
                access = VERIFY_WRITE;