summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorGuenter Roeck2012-07-21 02:53:48 +0200
committerZhang Rui2012-09-24 08:44:37 +0200
commit79a49168b595f5400ed3108cd57e90f5bbe144ca (patch)
tree6f504185a9163695adfe87ae07dcc72694cb36c8 /drivers/clocksource
parentThermal: Introduce locking for cdev.thermal_instances list. (diff)
downloadkernel-qcow2-linux-79a49168b595f5400ed3108cd57e90f5bbe144ca.tar.gz
kernel-qcow2-linux-79a49168b595f5400ed3108cd57e90f5bbe144ca.tar.xz
kernel-qcow2-linux-79a49168b595f5400ed3108cd57e90f5bbe144ca.zip
thermal: fix potential out-of-bounds memory access
temp_crit.name and temp_input.name have a length of 16 bytes. Using THERMAL_NAME_LENGTH (20) as length parameter for snprintf() may result in out-of-bounds memory accesses. Replace it with sizeof(). Addresses Coverity #115679 Signed-off-by: Guenter Roeck <linux@roeck-us.net> Cc: Len Brown <lenb@kernel.org> Cc: "Brown, Len" <len.brown@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/clocksource')
0 files changed, 0 insertions, 0 deletions