]> git.zerfleddert.de Git - usb-driver/commitdiff
BUG-Fix: Do not do ioctls on fd == 0
authormichael <michael>
Sun, 4 Mar 2007 20:32:32 +0000 (20:32 +0000)
committermichael <michael>
Sun, 4 Mar 2007 20:32:32 +0000 (20:32 +0000)
usb-driver.c

index be08eff4236fec1f5d5de7194225f2926a92d874..d38da3e4dfdc2bf8a5a4321beec0e7cff41b14c5 100644 (file)
@@ -660,7 +660,7 @@ int ioctl(int fd, int request, ...) {
        argp = va_arg (args, void *);
        va_end (args);
 
-       if (fd == windrvrfd)
+       if (windrvrfd && (fd == windrvrfd))
                ret = do_wdioctl(fd, request, argp);
        else
                ret = (*ioctl_func) (fd, request, argp);
Impressum, Datenschutz