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

Commit fcc24db5 authored by Christian Riesch's avatar Christian Riesch Committed by David S. Miller
Browse files

asix: Fix return value in AX88172A driver bind function



Return -ENOTSUPP if the initialization fails because the
device is configured for a mode that is not supported by the driver.

Signed-off-by: default avatarChristian Riesch <christian.riesch@omicron.at>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3715899
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -274,6 +274,7 @@ static int ax88172a_bind(struct usbnet *dev, struct usb_interface *intf)
		break;
	default:
		netdev_err(dev->net, "Interface mode not supported by driver\n");
		ret = -ENOTSUPP;
		goto free;
	}