diff options
Diffstat (limited to 'drivers/message/i2o/device.c')
-rw-r--r-- | drivers/message/i2o/device.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/message/i2o/device.c b/drivers/message/i2o/device.c index 280627ae6cf7..f1b7eb63d54b 100644 --- a/drivers/message/i2o/device.c +++ b/drivers/message/i2o/device.c | |||
@@ -282,8 +282,7 @@ int i2o_device_parse_lct(struct i2o_controller *c) | |||
282 | 282 | ||
283 | down(&c->lct_lock); | 283 | down(&c->lct_lock); |
284 | 284 | ||
285 | if (c->lct) | 285 | kfree(c->lct); |
286 | kfree(c->lct); | ||
287 | 286 | ||
288 | lct = c->dlct.virt; | 287 | lct = c->dlct.virt; |
289 | 288 | ||
@@ -447,8 +446,8 @@ static struct class_interface i2o_device_class_interface = { | |||
447 | * ResultCount, ErrorInfoSize, BlockStatus and BlockSize. | 446 | * ResultCount, ErrorInfoSize, BlockStatus and BlockSize. |
448 | */ | 447 | */ |
449 | 448 | ||
450 | int i2o_parm_issue(struct i2o_device *i2o_dev, int cmd, void *oplist, | 449 | static int i2o_parm_issue(struct i2o_device *i2o_dev, int cmd, void *oplist, |
451 | int oplen, void *reslist, int reslen) | 450 | int oplen, void *reslist, int reslen) |
452 | { | 451 | { |
453 | struct i2o_message __iomem *msg; | 452 | struct i2o_message __iomem *msg; |
454 | u32 m; | 453 | u32 m; |
@@ -540,7 +539,7 @@ int i2o_parm_field_get(struct i2o_device *i2o_dev, int group, int field, | |||
540 | opblk[4] = -1; | 539 | opblk[4] = -1; |
541 | 540 | ||
542 | size = i2o_parm_issue(i2o_dev, I2O_CMD_UTIL_PARAMS_GET, opblk, | 541 | size = i2o_parm_issue(i2o_dev, I2O_CMD_UTIL_PARAMS_GET, opblk, |
543 | sizeof(opblk), resblk, sizeof(resblk)); | 542 | sizeof(opblk), resblk, buflen + 8); |
544 | 543 | ||
545 | memcpy(buf, resblk + 8, buflen); /* cut off header */ | 544 | memcpy(buf, resblk + 8, buflen); /* cut off header */ |
546 | 545 | ||