mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04: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:
committed by
Linus Torvalds
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:
|
||||
|
||||
Reference in New Issue
Block a user