Skip to content
Commit 9e6fd874 authored by 蒋家盛's avatar 蒋家盛 Committed by David S. Miller
Browse files

net: prestera: acl: Add check for kmemdup

As the kemdup could return NULL, it should be better to check the return
value and return error if fails.
Moreover, the return value of prestera_acl_ruleset_keymask_set() should
be checked by cascade.

Fixes: 604ba230

 ("net: prestera: flower template support")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: default avatarTaras <Chornyi&lt;tchornyi@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 73ea7350
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment