projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e2fac4
)
Make sure destroy function was defined before trying to call it.
author
Justin Pettit
<jpettit@nicira.com>
Tue, 20 May 2008 19:43:19 +0000
(12:43 -0700)
committer
Justin Pettit
<jpettit@nicira.com>
Tue, 20 May 2008 19:43:19 +0000
(12:43 -0700)
datapath/chain.c
patch
|
blob
|
history
diff --git
a/datapath/chain.c
b/datapath/chain.c
index 2b1178b8a5cd134d23bcfbfc390bcf7912aa7c15..c857e9a1547af6b728506a6b1ea8a1e50d00725f 100644
(file)
--- a/
datapath/chain.c
+++ b/
datapath/chain.c
@@
-153,7
+153,8
@@
void chain_destroy(struct sw_chain *chain)
synchronize_rcu();
for (i = 0; i < chain->n_tables; i++) {
struct sw_table *t = chain->tables[i];
- t->destroy(t);
+ if (t->destroy)
+ t->destroy(t);
}
module_put(chain->owner);
kfree(chain);