From: Vasily Averin Date: Tue, 17 Jul 2007 11:04:27 +0000 (-0700) Subject: i2o proc reading oops X-Git-Tag: v2.6.23-rc1~672 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=44aaa9384faf68717cf3828dce6f8171a0a5d7bf;p=linux-2.6-omap-h63xx.git 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 Acked-by: Alan Cox Cc: Markus Lidel Acked-by: Kirill Korotaev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/message/i2o/exec-osm.c b/drivers/message/i2o/exec-osm.c index 809d4b63c0b..8c83ee3b092 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: