OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/sched: fix NULL dereference on the error path of tcf_skbmod_init()
[android-x86/kernel.git]
/
net
/
sched
/
act_skbmod.c
diff --git
a/net/sched/act_skbmod.c
b/net/sched/act_skbmod.c
index
f85313d
..
bd8e86c
100644
(file)
--- a/
net/sched/act_skbmod.c
+++ b/
net/sched/act_skbmod.c
@@
-192,7
+192,8
@@
static void tcf_skbmod_cleanup(struct tc_action *a, int bind)
struct tcf_skbmod_params *p;
p = rcu_dereference_protected(d->skbmod_p, 1);
- kfree_rcu(p, rcu);
+ if (p)
+ kfree_rcu(p, rcu);
}
static int tcf_skbmod_dump(struct sk_buff *skb, struct tc_action *a,