mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 08:25:22 -04:00
kern_intr: Check for NULL event in intr_destroy()
It likely won't happen, but is consistent with the other functions of
this KPI.
Reviewed by: imp, jhb
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D33479
(cherry picked from commit 39888ed7a3)
This commit is contained in:
parent
b9622c483b
commit
f177e00aef
1 changed files with 3 additions and 0 deletions
|
|
@ -505,6 +505,9 @@ int
|
|||
intr_event_destroy(struct intr_event *ie)
|
||||
{
|
||||
|
||||
if (ie == NULL)
|
||||
return (EINVAL);
|
||||
|
||||
mtx_lock(&event_lock);
|
||||
mtx_lock(&ie->ie_lock);
|
||||
if (!CK_SLIST_EMPTY(&ie->ie_handlers)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue