i2o proc reading oops
authorVasily Averin <vvs@sw.ru>
Tue, 17 Jul 2007 11:04:27 +0000 (04:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:06 +0000 (10:23 -0700)
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>
drivers/message/i2o/exec-osm.c

index 809d4b6..8c83ee3 100644 (file)
@@ -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: