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

Commit 1a8e6b48 authored by David S. Miller's avatar David S. Miller
Browse files

Revert "net: usb: asix: fill null-ptr-deref in asix_suspend"



This reverts commit baedf68a.

There is an updated version of this fix which covers
the problem more thoroughly.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0de0add1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -626,7 +626,7 @@ static int asix_suspend(struct usb_interface *intf, pm_message_t message)
	struct usbnet *dev = usb_get_intfdata(intf);
	struct asix_common_private *priv = dev->driver_priv;

	if (priv && priv->suspend)
	if (priv->suspend)
		priv->suspend(dev);

	return usbnet_suspend(intf, message);