]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2o: check copy_from_user() size parameter
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 20 Mar 2013 04:07:50 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:34:06 +0000 (16:34 +1100)
commit35cbec7427a7a93018e8edfc3a08090fd4f97c36
treeaa897e608a0369eee84d621f650ac8e163037942
parent8f78681096668543cff57b062e2a7be0c1ffa004
i2o: check copy_from_user() size parameter

Limit the size of the copy so we don't corrupt memory.  Hopefully this can
only be called by root, but fixing this makes the static checkers happier.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Masanari Iida <standby24x7@gmail.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/message/i2o/i2o_config.c