Re: [ibm-acpi-devel] [PATCH] ACPI: thinkpad-acpi: fix oops when a module parameter has no value

2007-11-19 Thread Len Brown
applied thanks, -len On Sunday 18 November 2007 06:18, Henrique de Moraes Holschuh wrote: > 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 modprobi

[ibm-acpi-devel] [PATCH] ACPI: thinkpad-acpi: fix oops when a module parameter has no value

2007-11-18 Thread Henrique de Moraes Holschuh
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 th