mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
ddp: Clear active DDP buffer members to NULL to pacify an assertion
Reviewed by: np Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D43999
This commit is contained in:
parent
7ad2e83d5e
commit
25429e2743
1 changed files with 8 additions and 1 deletions
|
|
@ -186,10 +186,17 @@ free_ddp_buffer(struct tom_data *td, struct ddp_buffer *db)
|
|||
*/
|
||||
if (!aio_clear_cancel_function(db->job))
|
||||
ddp_complete_one(db->job, 0);
|
||||
#ifdef INVARIANTS
|
||||
db->job = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (db->ps)
|
||||
if (db->ps) {
|
||||
free_pageset(td, db->ps);
|
||||
#ifdef INVARIANTS
|
||||
db->ps = NULL;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue