diff options
| author | Mark Brown <broonie@kernel.org> | 2026-09-30 13:37:51 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-30 13:37:51 +0100 |
| commit | 2ea66a9548aadc433074e72e13cdcc41b8246c33 (patch) | |
| tree | bcbd70bc3205c994b3df3cc235b9c6acd4db2e29 /kernel | |
| parent | e735105ccfbe674f2a1179901ec47a72e28d06c7 (diff) | |
| parent | 832b9b176be06a20747a267db6bc0010a24b74f4 (diff) | |
| download | linux-next-2ea66a9548aadc433074e72e13cdcc41b8246c33.tar.gz linux-next-2ea66a9548aadc433074e72e13cdcc41b8246c33.zip | |
Merge branch 'for-next/seccomp' of https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/seccomp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c index 86cf4460d69e..94c7ba80a8f7 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -1808,10 +1808,13 @@ static long seccomp_notify_addfd(struct seccomp_filter *filter, * We need to check again if the addfd request has been handled, * and if not, we will remove it from the queue. */ - if (list_empty(&kaddfd.list)) + if (list_empty(&kaddfd.list)) { ret = kaddfd.ret; - else + } else { list_del(&kaddfd.list); + if (addfd.flags & SECCOMP_ADDFD_FLAG_SEND) + knotif->state = SECCOMP_NOTIFY_SENT; + } out_unlock: mutex_unlock(&filter->notify_lock); |
