From: Dan Carpenter Date: Wed, 29 Sep 2010 08:41:05 +0000 (+0200) Subject: x86, UV: Use allocated buffer in tlb_uv.c:tunables_read() X-Git-Tag: v2.6.37-rc1~148^7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b365a85c68161ea5db5476eb8845a91ceb1777ea;p=pandora-kernel.git 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 Signed-off-by: Dan Carpenter Cc: Cliff Wickman Cc: Jack Steiner Cc: Robin Holt LKML-Reference: <20100929083118.GA6376@bicker> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed