mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
3d0fd333a1
commit
44aaa9384f
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue