Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74014
b: refs/heads/master
c: 59f91ff
h: refs/heads/master
v: v3
  • Loading branch information
Henrique de Moraes Holschuh authored and Len Brown committed Nov 19, 2007
1 parent 2e13cca commit 815dbb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4273af8d08c823d5898a2b1c2d0f25b4a8b9eaee
refs/heads/master: 59f91ff11e594913a5b3c03a4707fdf02338c8df
8 changes: 7 additions & 1 deletion trunk/drivers/misc/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4817,9 +4817,15 @@ static int __init set_ibm_param(const char *val, struct kernel_param *kp)
unsigned int i;
struct ibm_struct *ibm;

if (!kp || !kp->name || !val)
return -EINVAL;

for (i = 0; i < ARRAY_SIZE(ibms_init); i++) {
ibm = ibms_init[i].data;
BUG_ON(ibm == NULL);
WARN_ON(ibm == NULL);

if (!ibm || !ibm->name)
continue;

if (strcmp(ibm->name, kp->name) == 0 && ibm->write) {
if (strlen(val) > sizeof(ibms_init[i].param) - 2)
Expand Down

0 comments on commit 815dbb7

Please sign in to comment.