aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <[email protected]>2007-11-18 09:18:29 -0200
committerLen Brown <[email protected]>2007-11-19 16:10:04 -0500
commit59f91ff11e594913a5b3c03a4707fdf02338c8df (patch)
tree112aedb786b0785972f55853157ebe4752fc6265 /lib/debugobjects.c
parent4273af8d08c823d5898a2b1c2d0f25b4a8b9eaee (diff)
ACPI: thinkpad-acpi: fix oops when a module parameter has no value
set_ibm_param() could OOPS with a NULL pointer derreference if one did not give any values for a module parameter it handles. This would, of course, cause all sort of trouble for future modprobing and require a reboot to clean up properly. Fix it by returning -EINVAL if no values are given for the parameter, and also avoid any nastyness from BUG_ON while at it. How to reproduce: modprobe thinkpad-acpi brightness Signed-off-by: Henrique de Moraes Holschuh <[email protected]> Tested-by: Mike Kershaw <[email protected]> Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions