x86/cpu: Fix overrun check in arch_print_cpu_modalias()
authorBen Hutchings <ben@decadent.org.uk>
Sat, 11 Feb 2012 22:56:59 +0000 (22:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 23:24:26 +0000 (15:24 -0800)
commit70142a9dd154f54f7409871ead86f7d77f2c6576
tree03fd5ce309758ae27c0127159e6ab80df998ebd7
parentda5a70f3519fd6f73ece3eea261a861c9a4d6bbd
x86/cpu: Fix overrun check in arch_print_cpu_modalias()

snprintf() does not return a negative value when truncating.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Thomas Renninger <trenn@suse.de>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/match.c