act_ife: fix a typo in kmemdup() parameters
authorWANG Cong <xiyou.wangcong@gmail.com>
Wed, 2 Mar 2016 19:20:36 +0000 (11:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2016 03:43:44 +0000 (22:43 -0500)
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ife.c

index 6e7ec25..c589a9b 100644 (file)
@@ -108,7 +108,7 @@ EXPORT_SYMBOL_GPL(ife_get_meta_u16);
 
 int ife_alloc_meta_u32(struct tcf_meta_info *mi, void *metaval)
 {
-       mi->metaval = kmemdup(&metaval, sizeof(u32), GFP_KERNEL);
+       mi->metaval = kmemdup(metaval, sizeof(u32), GFP_KERNEL);
        if (!mi->metaval)
                return -ENOMEM;
 
@@ -118,7 +118,7 @@ EXPORT_SYMBOL_GPL(ife_alloc_meta_u32);
 
 int ife_alloc_meta_u16(struct tcf_meta_info *mi, void *metaval)
 {
-       mi->metaval = kmemdup(&metaval, sizeof(u16), GFP_KERNEL);
+       mi->metaval = kmemdup(metaval, sizeof(u16), GFP_KERNEL);
        if (!mi->metaval)
                return -ENOMEM;