Skip to content
Commit 52913246 authored by Rami Rosen's avatar Rami Rosen Committed by David S. Miller
Browse files

[MACVLAN]: Setting macvlan_handle_frame_hook to NULL when rtnl_link_register() fails.



In drivers/net/macvlan.c, when rtnl_link_register() fails in
macvlan_init_module(), there is no point to set it (second time in
this method) to macvlan_handle_frame; macvlan_init_module() will
return a negative number, so instead this patch sets
macvlan_handle_frame_hook to NULL.

Signed-off-by: default avatarRami Rosen <ramirose@gmail.com>
Acked-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e83a2ea8
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