]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ipmi poweroff: fix chassis control
authorCorey Minyard <minyard@acm.org>
Tue, 6 Sep 2005 22:18:46 +0000 (15:18 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:49 +0000 (16:57 -0700)
commit4f1d60ebd4d06c3bac3c2bf803ba9128ddeea030
treef2d8ae84df7fd510f135a8074e0da67592372138
parent495c4052ddeed596137ea106ae2b9aa3d0b79a18
[PATCH] ipmi poweroff: fix chassis control

The IPMI power control function proc_write_chassctrl was badly written, it
directly used userspace pointers, it assumed that strings were NULL
terminated, and it used the evil sscanf function.  This converts over to
using the sysctl interface for this data and changes the semantics to be a
little more logical.

Signed-off-by: Corey Minyard <minyard@acm.org>
Cc: <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/IPMI.txt
drivers/char/ipmi/ipmi_poweroff.c
include/linux/sysctl.h