]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: cdc-wdm: fix misuse of logical operation in place of bitop
authorDavid Sterba <dsterba@suse.cz>
Mon, 27 Dec 2010 17:49:58 +0000 (18:49 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 25 Jan 2012 21:53:23 +0000 (13:53 -0800)
commit 0cdfb819b6a97e79c7a0aa0c471cd7000367103b upstream.

CC: Greg Kroah-Hartman <gregkh@suse.de>
CC: Oliver Neukum <oliver@neukum.org>
CC: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
drivers/usb/class/cdc-wdm.c

index 3e564bfe17d16b8673f26bdd32fc4da64e201fdc..949b448fd13e7c61b983e1e9488031830d8fa6a4 100644 (file)
@@ -314,7 +314,7 @@ static ssize_t wdm_write
        if (r < 0)
                goto outnp;
 
-       if (!file->f_flags && O_NONBLOCK)
+       if (!(file->f_flags & O_NONBLOCK))
                r = wait_event_interruptible(desc->wait, !test_bit(WDM_IN_USE,
                                                                &desc->flags));
        else