Skip to content

Commit

Permalink
nios2: don't leave NULLs in sys_call_table[]
Browse files Browse the repository at this point in the history
fill the gaps in there with sys_ni_syscall, as everyone does...

Fixes: 82ed08d ("nios2: Exception handling")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
  • Loading branch information
Al Viro authored and Dinh Nguyen committed Aug 15, 2022
1 parent 8535c23 commit 45ec746
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion arch/nios2/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ local_restart:
movhi r11, %hiadj(sys_call_table)
add r1, r1, r11
ldw r1, %lo(sys_call_table)(r1)
beq r1, r0, ret_invsyscall

/* Check if we are being traced */
GET_THREAD_INFO r11
Expand Down
1 change: 1 addition & 0 deletions arch/nios2/kernel/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
#define __SYSCALL(nr, call) [nr] = (call),

void *sys_call_table[__NR_syscalls] = {
[0 ... __NR_syscalls-1] = sys_ni_syscall,
#include <asm/unistd.h>
};

0 comments on commit 45ec746

Please sign in to comment.