diff options
author | Dan Carpenter <error27@gmail.com> | 2022-11-15 14:17:43 +0100 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2022-11-15 15:14:29 +0100 |
commit | a92ce570c81dc0feaeb12a429b4bc65686d17967 (patch) | |
tree | 5a53dc2a26bfa737934cd80bf1d9dae4d6350e74 /drivers/char/ipmi/ssif_bmc.c | |
parent | ipmi/watchdog: Include <linux/kstrtox.h> when appropriate (diff) | |
download | linux-a92ce570c81dc0feaeb12a429b4bc65686d17967.tar.xz linux-a92ce570c81dc0feaeb12a429b4bc65686d17967.zip |
ipmi: fix use after free in _ipmi_destroy_user()
The intf_free() function frees the "intf" pointer so we cannot
dereference it again on the next line.
Fixes: cbb79863fc31 ("ipmi: Don't allow device module unload when in use")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Message-Id: <Y3M8xa1drZv4CToE@kili>
Cc: <stable@vger.kernel.org> # 5.5+
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi/ssif_bmc.c')
0 files changed, 0 insertions, 0 deletions