x86, ioapic: Use snrpintf while set names for IO-APIC resourses
authorCyrill Gorcunov <gorcunov@openvz.org>
Sun, 8 Nov 2009 15:54:31 +0000 (18:54 +0300)
committerIngo Molnar <mingo@elte.hu>
Sun, 8 Nov 2009 16:06:23 +0000 (17:06 +0100)
commit4343fe1024e09e17667f95620ed3e69a7a5f4389
tree1de7224068779bafd828ad2291cad1406b6a10b4
parent46dc281b1bb02527195fe2ad50a3af6d7f7f7325
x86, ioapic: Use snrpintf while set names for IO-APIC resourses

We should be ready that one day MAX_IO_APICS may raise its
number. To prevent memory overwrite we're to use safe
snprintf while set IO-APIC resourse name.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <20091108155431.GC25940@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/io_apic.c