diff options
author | Johan Hovold <jhovold@gmail.com> | 2010-05-20 00:13:17 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-06-05 00:16:18 +0400 |
commit | b41709f1263bb1ad37efc43fea0bb0b670c12e78 (patch) | |
tree | f3dbaa9d588dc1e76b79463960599d37936e5d7f /drivers/usb/serial/mos7840.c | |
parent | ad8456361fa19068cf49b50a4f98e41b73c08e76 (diff) | |
download | linux-b41709f1263bb1ad37efc43fea0bb0b670c12e78.tar.xz |
USB: mos7840: fix null-pointer dereference
Fix null-pointer dereference on error path.
Cc: stable <stable@kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/mos7840.c')
-rw-r--r-- | drivers/usb/serial/mos7840.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index f8424d1bfc1b..585b7e663740 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c @@ -730,7 +730,6 @@ static void mos7840_bulk_in_callback(struct urb *urb) mos7840_port = urb->context; if (!mos7840_port) { dbg("%s", "NULL mos7840_port pointer"); - mos7840_port->read_urb_busy = false; return; } |