mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08: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
@ -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 New Issue
Block a user