diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/cls_tcindex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c index a9f4279fbd69..a02ca7298385 100644 --- a/net/sched/cls_tcindex.c +++ b/net/sched/cls_tcindex.c | |||
@@ -241,7 +241,7 @@ tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, | |||
241 | * allocate new tcindex data and RCU assign it onto root. Keeping | 241 | * allocate new tcindex data and RCU assign it onto root. Keeping |
242 | * perfect hash and hash pointers from old data. | 242 | * perfect hash and hash pointers from old data. |
243 | */ | 243 | */ |
244 | cp = kzalloc(sizeof(cp), GFP_KERNEL); | 244 | cp = kzalloc(sizeof(*cp), GFP_KERNEL); |
245 | if (!cp) | 245 | if (!cp) |
246 | return -ENOMEM; | 246 | return -ENOMEM; |
247 | 247 | ||