diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2015-06-11 19:59:04 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-06-25 09:39:18 +0200 |
commit | 3c8e5105e759e7b2d88ea8a85b1285e535bc7500 (patch) | |
tree | d330708ba036982d6805764cd926d09e13e1d874 /arch/s390/kernel/crash_dump.c | |
parent | b035b60ded132592055c0f9bd1cc280259c7de4b (diff) | |
download | op-kernel-dev-3c8e5105e759e7b2d88ea8a85b1285e535bc7500.zip op-kernel-dev-3c8e5105e759e7b2d88ea8a85b1285e535bc7500.tar.gz |
s390/kdump: fix REGSET_VX_LOW vector register ELF notes
The REGSET_VX_LOW ELF notes should contain the lower 64 bit halfes of the
first sixteen 128 bit vector registers. Unfortunately currently we copy
the upper halfes.
Fix this and correctly copy the lower halfes.
Fixes: a62bc0739253 ("s390/kdump: add support for vector extension")
Cc: stable@vger.kernel.org # 3.18+
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/crash_dump.c')
-rw-r--r-- | arch/s390/kernel/crash_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c index 7a75ad4..f56cd73 100644 --- a/arch/s390/kernel/crash_dump.c +++ b/arch/s390/kernel/crash_dump.c @@ -416,7 +416,7 @@ static void *nt_s390_vx_low(void *ptr, __vector128 *vx_regs) ptr += len; /* Copy lower halves of SIMD registers 0-15 */ for (i = 0; i < 16; i++) { - memcpy(ptr, &vx_regs[i], 8); + memcpy(ptr, &vx_regs[i].u[2], 8); ptr += 8; } return ptr; |