Thread (11 messages) 11 messages, 3 authors, 2020-03-13

Re: [PATCH net-next 1/7] ionic: tx and rx queues state follows link state

From: David Miller <davem@davemloft.net>
Date: 2020-03-12 22:41:12

From: Shannon Nelson <redacted>
Date: Thu, 12 Mar 2020 14:50:09 -0700
+		if (!test_bit(IONIC_LIF_F_UP, lif->state) &&
+		    netif_running(netdev)) {
+			rtnl_lock();
+			ionic_open(netdev);
+			rtnl_unlock();
 		}
You're running into a major problem area here.

ionic_open() can fail, particularly because it allocates resources.

Yet you are doing this in an operational path that doesn't handle
and unwind from errors.

You must find a way to do this properly, because the current approach
can result in an inoperable interface.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help