[PATCH] Fix IPMI watchdog set_param_str() using kstrdup
authorSebastien Dugué <sebastien.dugue@bull.net>
Sat, 30 Dec 2006 00:46:53 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:55:54 +0000 (10:55 -0800)
commit43cdff92ad47e0ca024c8a07d29f9bb6119e759c
tree3f7b65d311012d3c02082da41af174ce9b779589
parent7479b1ce5ea41a828002c60739cff37f47b62913
[PATCH] Fix IPMI watchdog set_param_str() using kstrdup

set_param_str() cannot use kstrdup() to duplicate the parameter.  That's
fine when the driver is compiled as a module but it sure is not when built
into the kernel as the kernel parameters are parsed before the kmalloc
slabs are setup.

Signed-off-by: Sebastien Dugué <sebastien.dugue@bull.net>
Acked-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ipmi/ipmi_watchdog.c