diff options
author | Huacai Chen <chenhuacai@loongson.cn> | 2025-05-14 22:17:43 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2025-05-14 22:17:43 +0800 |
commit | 90436d234230e9a950ccd87831108b688b27a234 (patch) | |
tree | 2998090089cd414454dd801e34df8f8c668e5f25 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 2468b0e3d5659dfde77f081f266e1111a981efb8 (diff) |
LoongArch: Fix MAX_REG_OFFSET calculation
Fix MAX_REG_OFFSET calculation, make it point to the last register
in 'struct pt_regs' and not to the marker itself, which could allow
regs_get_register() to return an invalid offset.
Cc: stable@vger.kernel.org
Fixes: 803b0fc5c3f2baa6e5 ("LoongArch: Add process management")
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions