Files
i2som-imx-linux/drivers/hid
Dan Carpenter d70eb2623b HID: roccat: potential out of bounds in pyra_sysfs_write_settings()
commit 606185b20c upstream.

This is a static checker fix.  We write some binary settings to the
sysfs file.  One of the settings is the "->startup_profile".  There
isn't any checking to make sure it fits into the
pyra->profile_settings[] array in the profile_activated() function.

I added a check to pyra_sysfs_write_settings() in both places because
I wasn't positive that the other callers were correct.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
[bwh: Backported to 3.2: pyra_sysfs_write_settings() doesn't define a
 settings variable, so write the cast-expression inline]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2015-02-20 00:49:35 +00:00
..
2014-09-13 23:41:46 +01:00
2014-09-13 23:41:46 +01:00
2014-09-13 23:41:46 +01:00
2014-09-13 23:41:46 +01:00
2012-05-31 00:43:38 +01:00