]> 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>
Wed, 20 Mar 2013 04:23:03 +0000 (15:23 +1100)
commit36fb988fcadf252bd3d1bed9f22fbd422b0f6cee
tree3672839cec36d7ff53ff37fa9cd638abf4899d16
parent51d6cda1a33d78c2a32d057fd45097d1fcbf8daf
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