]> www.infradead.org Git - users/hch/configfs.git/commit
net/ncsi: Disable the ncsi work before freeing the associated structure
authorEddie James <eajames@linux.ibm.com>
Wed, 25 Sep 2024 15:55:23 +0000 (10:55 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 3 Oct 2024 08:14:14 +0000 (10:14 +0200)
commita0ffa68c70b367358b2672cdab6fa5bc4c40de2c
tree7cc6b34de767b847bead2f5514b7ecc21d02b824
parentfa7dfeae041c91e425db9fbb95fb3f57b821c386
net/ncsi: Disable the ncsi work before freeing the associated structure

The work function can run after the ncsi device is freed, resulting
in use-after-free bugs or kernel panic.

Fixes: 2d283bdd079c ("net/ncsi: Resource management")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://patch.msgid.link/20240925155523.1017097-1-eajames@linux.ibm.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ncsi/ncsi-manage.c