]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: ipmi_devintf: compat_ioctl method fails to take ipmi_mutex
authorBenjamin LaHaise <bcrl@kvack.org>
Thu, 16 May 2013 19:04:27 +0000 (14:04 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 May 2013 20:49:25 +0000 (13:49 -0700)
commit032e881a1acd6685722cc97ddd47d848c6ca5d84
tree3ec374be28fd14b13b7266fb1d55c0995d09bb37
parent9e537641f543bcbfc1f8dfccfd5e51f698ee7411
ipmi: ipmi_devintf: compat_ioctl method fails to take ipmi_mutex

When a 32 bit version of ipmitool is used on a 64 bit kernel, the
ipmi_devintf code fails to correctly acquire ipmi_mutex.  This results in
incomplete data being retrieved in some cases, or other possible failures.
Add a wrapper around compat_ipmi_ioctl() to take ipmi_mutex to fix this.

Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_devintf.c