summaryrefslogtreecommitdiff
path: root/drivers/idle/intel_idle.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-09-29 12:41:05 +0400
committerIngo Molnar <mingo@elte.hu>2010-09-30 11:11:27 +0400
commitb365a85c68161ea5db5476eb8845a91ceb1777ea (patch)
tree5fbda5fca7fecfa509e2955a220d08362441f2de /drivers/idle/intel_idle.c
parent4193d9163582b05e33aca3392e46649e5c3da8d1 (diff)
downloadlinux-b365a85c68161ea5db5476eb8845a91ceb1777ea.tar.xz
x86, UV: Use allocated buffer in tlb_uv.c:tunables_read()
The original code didn't check that the value returned from snprintf() was less than the size of the buffer. Although it didn't cause a runtime bug in this case, it makes the static checkers complain. Andrew Morton suggested a dynamically sized buffer would be cleaner. Suggested-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dan Carpenter <error27@gmail.com> Cc: Cliff Wickman <cpw@sgi.com> Cc: Jack Steiner <steiner@sgi.com> Cc: Robin Holt <holt@sgi.com> LKML-Reference: <20100929083118.GA6376@bicker> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/idle/intel_idle.c')
0 files changed, 0 insertions, 0 deletions