diff options
author | Vasily Averin <vvs@sw.ru> | 2007-07-17 07:04:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:06 -0400 |
commit | 44aaa9384faf68717cf3828dce6f8171a0a5d7bf (patch) | |
tree | 43af532d03778e52cfaa4706761bb302c98bcef5 | |
parent | 3d0fd333a1c2659fb0495894090d1146b239fd9a (diff) |
i2o proc reading oops
Fix oops on reading from some i2o proc files (i2o_seq_show_driver_store() and
other) because their handlers uses "exec" field in struct i2o_controller
Signed-off-by: Vasily Averin <vvs@sw.ru>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
Acked-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/message/i2o/exec-osm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/message/i2o/exec-osm.c b/drivers/message/i2o/exec-osm.c index 809d4b63c0b3..8c83ee3b0920 100644 --- a/drivers/message/i2o/exec-osm.c +++ b/drivers/message/i2o/exec-osm.c | |||
@@ -339,6 +339,8 @@ static int i2o_exec_probe(struct device *dev) | |||
339 | rc = device_create_file(dev, &dev_attr_product_id); | 339 | rc = device_create_file(dev, &dev_attr_product_id); |
340 | if (rc) goto err_vid; | 340 | if (rc) goto err_vid; |
341 | 341 | ||
342 | i2o_dev->iop->exec = i2o_dev; | ||
343 | |||
342 | return 0; | 344 | return 0; |
343 | 345 | ||
344 | err_vid: | 346 | err_vid: |