Commit 2f5f822e authored by Dan Carpenter's avatar Dan Carpenter Committed by Yongqiang Liu
Browse files

ipmi: fix use after free in _ipmi_destroy_user()

stable inclusion
from stable-v4.19.270
commit 35ad87bfe330f7ef6a19f772223c63296d643172
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6DPF8


CVE: NA

--------------------------------

commit a92ce570 upstream.

The intf_free() function frees the "intf" pointer so we cannot
dereference it again on the next line.

Fixes: cbb79863 ("ipmi: Don't allow device module unload when in use")
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Message-Id: <Y3M8xa1drZv4CToE@kili>
Cc: <stable@vger.kernel.org> # 5.5+
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent c6ad76f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment