summaryrefslogtreecommitdiffstats
path: root/drivers/char/misc.c
diff options
context:
space:
mode:
authorNeelesh Gupta <neelegup@linux.vnet.ibm.com>2015-07-16 16:46:54 +0530
committerCorey Minyard <cminyard@mvista.com>2015-09-03 15:01:55 -0500
commitcca85f19c260df495a487495479c67803b25fa8a (patch)
tree91aed5a553ea8a627ac8b60301df2ad57a10cbdf /drivers/char/misc.c
parent0fbcf4af7c8362d4691f9388efa57d0b14b34225 (diff)
downloadlinux-cca85f19c260df495a487495479c67803b25fa8a.tar.bz2
ipmi/powernv: Fix potential invalid pointer dereference
If the OPAL call to receive the ipmi message fails, then we free up the smi message and return. But, the driver still holds the reference to old smi message in the 'cur_msg' which can potentially be accessed later and freed again leading to kernel oops. To fix it up, The kernel driver should reset the 'cur_msg' and send reply to the user in addition to freeing the message. Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com> Fixed a checkpatch warning dealing with an else after a return. Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/misc.c')
0 files changed, 0 insertions, 0 deletions