git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NETFILTER]: nf_queue: don't return error when unregistering a non-existant handler
[pandora-kernel.git]
/
net
/
netfilter
/
nf_queue.c
diff --git
a/net/netfilter/nf_queue.c
b/net/netfilter/nf_queue.c
index
bfc2928
..
ddc80ea
100644
(file)
--- a/
net/netfilter/nf_queue.c
+++ b/
net/netfilter/nf_queue.c
@@
-51,7
+51,7
@@
int nf_unregister_queue_handler(int pf, const struct nf_queue_handler *qh)
return -EINVAL;
mutex_lock(&queue_handler_mutex);
- if (queue_handler[pf] != qh) {
+ if (queue_handler[pf]
&& queue_handler[pf]
!= qh) {
mutex_unlock(&queue_handler_mutex);
return -EINVAL;
}