Skip to content

Commit 1a8e6b4

Browse files
committed
Revert "net: usb: asix: fill null-ptr-deref in asix_suspend"
This reverts commit baedf68. There is an updated version of this fix which covers the problem more thoroughly. Signed-off-by: David S. Miller <[email protected]>
1 parent 0de0add commit 1a8e6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/asix_devices.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static int asix_suspend(struct usb_interface *intf, pm_message_t message)
626626
struct usbnet *dev = usb_get_intfdata(intf);
627627
struct asix_common_private *priv = dev->driver_priv;
628628

629-
if (priv && priv->suspend)
629+
if (priv->suspend)
630630
priv->suspend(dev);
631631

632632
return usbnet_suspend(intf, message);

0 commit comments

Comments
 (0)