Thread (14 messages) flat view 14 messages, 3 authors, 2021-08-06

Re: [PATCH net-next 2/6] net: ipa: reorder netdev pointer assignments

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-08-06 01:27:17
Also in: lkml

On Wed,  4 Aug 2021 10:36:22 -0500 Alex Elder wrote:
Assign the ipa->modem_netdev and endpoint->netdev pointers *before*
registering the network device.  As soon as the device is
registered it can be opened, and by that time we'll want those
pointers valid.

Similarly, don't make those pointers NULL until *after* the modem
network device is unregistered in ipa_modem_stop().

Signed-off-by: Alex Elder <redacted>
This one seems like a pretty legit race, net would be better if you
don't mind.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help