diff options
author | Vasily Averin <vvs@sw.ru> | 2007-07-17 04:04:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 10:23:06 -0700 |
commit | 44aaa9384faf68717cf3828dce6f8171a0a5d7bf (patch) | |
tree | 43af532d03778e52cfaa4706761bb302c98bcef5 /drivers/message/i2o/exec-osm.c | |
parent | 3d0fd333a1c2659fb0495894090d1146b239fd9a (diff) | |
download | linux-44aaa9384faf68717cf3828dce6f8171a0a5d7bf.tar.gz linux-44aaa9384faf68717cf3828dce6f8171a0a5d7bf.tar.bz2 linux-44aaa9384faf68717cf3828dce6f8171a0a5d7bf.zip |
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>
Diffstat (limited to 'drivers/message/i2o/exec-osm.c')
-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) rc = device_create_file(dev, &dev_attr_product_id); if (rc) goto err_vid; + i2o_dev->iop->exec = i2o_dev; + return 0; err_vid: |