Skip to content

Commit

Permalink
Revert "net: usb: asix: fill null-ptr-deref in asix_suspend"
Browse files Browse the repository at this point in the history
This reverts commit baedf68.

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

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Nov 9, 2017
1 parent 0de0add commit 1a8e6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/usb/asix_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1a8e6b4

Please sign in to comment.