]> 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>
Fri, 22 Mar 2013 04:33:28 +0000 (15:33 +1100)
commitd8589d83d933e89d329ab2e337aa6701dbd059b8
tree2ebc0f2eb3c9a5851dab14655a8d6ff5d3157c68
parent0a8c50f9651e352d6b9414c8be316252ac3d6b1f
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