提交 d1491fa5 编写于 作者: W WANG Cong 提交者: David S. Miller

act_ife: fix a typo in kmemdup() parameters

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: NCong Wang <xiyou.wangcong@gmail.com>
Acked-by: NJamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 00a1f0a9
...@@ -108,7 +108,7 @@ EXPORT_SYMBOL_GPL(ife_get_meta_u16); ...@@ -108,7 +108,7 @@ EXPORT_SYMBOL_GPL(ife_get_meta_u16);
int ife_alloc_meta_u32(struct tcf_meta_info *mi, void *metaval) 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) if (!mi->metaval)
return -ENOMEM; return -ENOMEM;
...@@ -118,7 +118,7 @@ EXPORT_SYMBOL_GPL(ife_alloc_meta_u32); ...@@ -118,7 +118,7 @@ EXPORT_SYMBOL_GPL(ife_alloc_meta_u32);
int ife_alloc_meta_u16(struct tcf_meta_info *mi, void *metaval) 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) if (!mi->metaval)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册