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

Commit fcee7a01 authored by John W. Linville's avatar John W. Linville
Browse files

hostap_cs: correct poor NULL checks in suspend/resume routines

parent 7f2d38eb
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -777,7 +777,9 @@ static int hostap_cs_suspend(struct pcmcia_device *link)
	int dev_open = 0;
	struct hostap_interface *iface = NULL;

	if (dev)
	if (!dev)
		return -ENODEV;

	iface = netdev_priv(dev);

	PDEBUG(DEBUG_EXTRA, "%s: CS_EVENT_PM_SUSPEND\n", dev_info);
@@ -798,7 +800,9 @@ static int hostap_cs_resume(struct pcmcia_device *link)
	int dev_open = 0;
	struct hostap_interface *iface = NULL;

	if (dev)
	if (!dev)
		return -ENODEV;

	iface = netdev_priv(dev);

	PDEBUG(DEBUG_EXTRA, "%s: CS_EVENT_PM_RESUME\n", dev_info);