[S390] oprofile s390: prevent stack corruption
authorJan Glauber <jang@linux.vnet.ibm.com>
Mon, 4 Apr 2011 07:43:29 +0000 (09:43 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Mon, 4 Apr 2011 07:43:32 +0000 (09:43 +0200)
commit65a94b1417badaee2ed923fd07e23b651b25c729
treede16ca3f8edc0f54dbe621ea754bdbd5d4a9bb97
parent78fca1b95837a44983608302e89c7258981be9b3
[S390] oprofile s390: prevent stack corruption

Prevent stack corruption by memcpy which copies more bytes then
available at the destination. While at it use the new test_facility
to test for the facility bit.

Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/oprofile/hwsampler.c