diff options
author | glebius <glebius@FreeBSD.org> | 2011-10-23 10:13:20 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2011-10-23 10:13:20 +0000 |
commit | a1471140d10f0a6d4e2c1f31b7c5afbca6844f02 (patch) | |
tree | 268e65b8b4960f6ca979e67abddbf7bda84a1c1e /sys/contrib/pf/net/if_pfsync.c | |
parent | 0b986dc6d5b52d67e6884d4885698c693f480a23 (diff) | |
download | FreeBSD-src-a1471140d10f0a6d4e2c1f31b7c5afbca6844f02.zip FreeBSD-src-a1471140d10f0a6d4e2c1f31b7c5afbca6844f02.tar.gz |
Absense of M_WAITOK in malloc flags for UMA doesn't
equals presense of M_NOWAIT. Specify M_NOWAIT explicitly.
This fixes sleeping with PF_LOCK().
Diffstat (limited to 'sys/contrib/pf/net/if_pfsync.c')
-rw-r--r-- | sys/contrib/pf/net/if_pfsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c index 4aaca76..a1f5630 100644 --- a/sys/contrib/pf/net/if_pfsync.c +++ b/sys/contrib/pf/net/if_pfsync.c @@ -762,7 +762,7 @@ pfsync_state_import(struct pfsync_state *sp, u_int8_t flags) if (flags & PFSYNC_SI_IOCTL) pool_flags = PR_WAITOK | PR_ZERO; else - pool_flags = PR_ZERO; + pool_flags = PR_NOWAIT | PR_ZERO; if ((st = pool_get(&V_pf_state_pl, pool_flags)) == NULL) goto cleanup; |