Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b41709f1 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: mos7840: fix null-pointer dereference



Fix null-pointer dereference on error path.

Cc: stable <stable@kernel.org>
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ad845636
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -730,7 +730,6 @@ static void mos7840_bulk_in_callback(struct urb *urb)
	mos7840_port = urb->context;
	mos7840_port = urb->context;
	if (!mos7840_port) {
	if (!mos7840_port) {
		dbg("%s", "NULL mos7840_port pointer");
		dbg("%s", "NULL mos7840_port pointer");
		mos7840_port->read_urb_busy = false;
		return;
		return;
	}
	}