[PATCH net-2.6.25] [MACVLAN] Setting macvlan_handle_frame_hook to NULL when rtnl_link_register() fails.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rami Rosen
Date: Tuesday, January 29, 2008 - 8:14 am

Hi,
  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.

Regards,
Rami Rosen


Signed-off-by: Rami Rosen <ramirose@gmail.com>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH net-2.6.25] [MACVLAN] Setting macvlan_handle_frame_ ..., Rami Rosen, (Tue Jan 29, 8:14 am)