Subject: Re: [PATCH net v2] net: atm: Fix use-after-free bug in atm_dev_register()

From: Jakub Kicinski <[email-masked]>
Date: Tue, 13 Dec 2022 19:12:33 -0800

On Mon, 12 Dec 2022 09:12:30 +0200 Leon Romanovsky wrote:
> > v2: Call put_device in atm_register_sysfs instead of atm_dev_register.
> 
> Reviewed-by: Leon Romanovsky <[email-masked]>

On one of the previous versions you commented that
atm_unregister_sysfs() also needs to move to unregister() rather 
than del():

https://lore.kernel.org/all/Y48CwyATYAAcPgqT@unreal/

Is that not the case?

Also atm_dev_register() still frees the dev on atm_register_sysfs()
failure, is that okay?