powerpc/vio: use strcpy in modalias_show
authorPrarit Bhargava <prarit@redhat.com>
Thu, 17 Oct 2013 12:00:11 +0000 (08:00 -0400)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Oct 2013 05:00:57 +0000 (16:00 +1100)
commit411cabf79e684171669ad29a0628c400b4431e95
tree34cd30b8bcb83d514338998023e5582503c8a974
parentecb35c3943040f4db735c7d14c24ee7750cbb482
powerpc/vio: use strcpy in modalias_show

Commit e82b89a6f19bae73fb064d1b3dd91fcefbb478f4 used strcat instead of
strcpy which can result in an overflow of newlines on the buffer.

Signed-off-by: Prarit Bhargava
Cc: benh@kernel.crashing.org
Cc: ben@decadent.org.uk
Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/vio.c