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

Commit 4fa42602 authored by Emil Goode's avatar Emil Goode Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8192e: Fix potential NULL pointer dereference



We need to make sure the struct rtllib_device pointer ieee is not NULL
after the goto rx_dropped label since it is dereferenced there.

Signed-off-by: default avatarEmil Goode <emilgoode@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd3fde11
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1496,6 +1496,7 @@ int rtllib_rx(struct rtllib_device *ieee, struct sk_buff *skb,
	return ret;

 rx_dropped:
	if (ieee)
		ieee->stats.rx_dropped++;
	return 0;
}