diff options
author | Dan Carpenter <[email protected]> | 2010-09-29 10:41:05 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-09-30 09:11:27 +0200 |
commit | b365a85c68161ea5db5476eb8845a91ceb1777ea (patch) | |
tree | 5fbda5fca7fecfa509e2955a220d08362441f2de /net/unix/sysctl_net_unix.c | |
parent | 4193d9163582b05e33aca3392e46649e5c3da8d1 (diff) |
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 <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Cc: Cliff Wickman <[email protected]>
Cc: Jack Steiner <[email protected]>
Cc: Robin Holt <[email protected]>
LKML-Reference: <20100929083118.GA6376@bicker>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions