Thread (12 messages) 12 messages, 3 authors, 2022-01-28

Re: [PATCH net] net: dev: Detect dev_hold() after netdev_wait_allrefs()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-01-28 02:22:23
Also in: lkml

On Fri, 28 Jan 2022 03:14:14 +0100 Jann Horn wrote:
Oh. Whoops. That's what I get for only testing without CONFIG_PCPU_DEV_REFCNT...

I guess a better place to put the new check would be directly after
checking for "dev->reg_state == NETREG_UNREGISTERING"? Like this?
Possibly a very silly suggestion but perhaps we should set 
the pointer to NULL for the pcpu case and let it crash?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help