diff options
author | 2020-10-15 20:37:01 +0200 | |
---|---|---|
committer | 2020-10-15 20:37:01 +0200 | |
commit | 62b31a045757eac81fed94b19df47418a0818528 (patch) | |
tree | 285fda56df8304dff6ba929bad65ddfb4e4fd726 /kernel/entry/common.c | |
parent | Merge branch 'for-5.10/apple' into for-linus (diff) | |
parent | HID: hid-debug: fix nonblocking read semantics wrt EIO/ERESTARTSYS (diff) | |
download | wireguard-linux-62b31a045757eac81fed94b19df47418a0818528.tar.xz wireguard-linux-62b31a045757eac81fed94b19df47418a0818528.zip |
Merge branch 'for-5.10/core' into for-linus
- nonblocking read semantics fix for hid-debug
Diffstat (limited to '')
-rw-r--r-- | kernel/entry/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/entry/common.c b/kernel/entry/common.c index 9852e0d62d95..fcae019158ca 100644 --- a/kernel/entry/common.c +++ b/kernel/entry/common.c @@ -65,7 +65,8 @@ static long syscall_trace_enter(struct pt_regs *regs, long syscall, syscall_enter_audit(regs, syscall); - return ret ? : syscall; + /* The above might have changed the syscall number */ + return ret ? : syscall_get_nr(current, regs); } noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall) |