]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: vme_user: fix root device leak on init failure
authorJohan Hovold <johan@kernel.org>
Fri, 24 Apr 2026 10:49:10 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 09:29:53 +0000 (11:29 +0200)
commit32c91e8ee039777d0b95b914633fc6a42607959c
tree56305485ceb1795fc67e2f6a89502d77e18499a8
parent254f49634ee16a731174d2ae34bc50bd5f45e731
staging: vme_user: fix root device leak on init failure

Make sure to deregister and free the root device in case module
initialisation fails.

Fixes: 658bcdae9c67 ("vme: Adding Fake VME driver")
Cc: stable@vger.kernel.org # 4.9
Cc: Martyn Welch <martyn@welchs.me.uk>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260424104910.2619349-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme_fake.c