mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-07 00:02:05 -04:00
Add a missing rcu_read_unlock() call on exit path
An exit path in the dns_dispatch_add() function fails to get out of
the RCU critical section when returning early. Add the missing
rcu_read_unlock() call.
(cherry picked from commit 4123d59fbc)
This commit is contained in:
parent
5e6594b1f7
commit
346850954c
1 changed files with 1 additions and 0 deletions
|
|
@ -1496,6 +1496,7 @@ dns_dispatch_add(dns_dispatch_t *disp, isc_loop_t *loop,
|
|||
fail:
|
||||
if (result != ISC_R_SUCCESS) {
|
||||
isc_mem_put(disp->mctx, resp, sizeof(*resp));
|
||||
rcu_read_unlock();
|
||||
return (result);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue