Home
last modified time | relevance | path

Searched hist:"52913246 e0056c9c6215a778a3b31b6b9ce5c3ef" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/
H A Dmacvlan.cdiff 52913246e0056c9c6215a778a3b31b6b9ce5c3ef Thu Jan 31 18:56:03 CST 2008 Rami Rosen <ramirose@gmail.com> [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: Rami Rosen <ramirose@gmail.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>