]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2o: check copy_from_user() size parameter
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 10 Mar 2013 10:54:54 +0000 (21:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 12 Mar 2013 03:56:35 +0000 (14:56 +1100)
commitd9d83f6c03d12f3260c4ba709330658f407c0f9f
treef0b9cd0f40e504049f0b59f6b1269e227b732f06
parent94a5c45d3de54e2f1750cb7625f33ab2df2be8fb
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