Commit a979c54e authored by David Sterba's avatar David Sterba Committed by Greg Kroah-Hartman

USB: cdc-wdm: fix misuse of logical operation in place of bitop

commit 0cdfb819 upstream.

CC: Greg Kroah-Hartman <gregkh@suse.de>
CC: Oliver Neukum <oliver@neukum.org>
CC: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
parent 81cdb4f5
...@@ -314,7 +314,7 @@ static ssize_t wdm_write ...@@ -314,7 +314,7 @@ static ssize_t wdm_write
if (r < 0) if (r < 0)
goto outnp; 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, r = wait_event_interruptible(desc->wait, !test_bit(WDM_IN_USE,
&desc->flags)); &desc->flags));
else else
......
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