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

Commit 683f8c9e authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by John W. Linville
Browse files

[PATCH] zd1201: Possible NULL dereference



If we enter the if(!zd) and set free to 1, we dereference zd in the exit
code.

Signed-off-by: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7e4e8d99
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -193,10 +193,8 @@ static void zd1201_usbrx(struct urb *urb)
	struct sk_buff *skb;
	unsigned char type;

	if (!zd) {
		free = 1;
		goto exit;
	}
	if (!zd)
		return;

	switch(urb->status) {
		case -EILSEQ: