From: Sven Eckelmann Date: Sat, 21 Aug 2010 12:18:08 +0000 (+0200) Subject: Staging: batman-adv: Create batman_if only on register event X-Git-Tag: v2.6.36-rc3~38^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1189f130f89b73eecb6117c0fc5e90abbcb7faa0;p=pandora-kernel.git Staging: batman-adv: Create batman_if only on register event We try to get all events for all net_devices to be able to add special sysfs folders for the batman-adv configuration. This also includes such events like NETDEV_POST_INIT which has no valid kobject according to v2.6.32-rc3-13-g7ffbe3f. This would create an oops in that situation. It is enough to create the batman_if only on NETDEV_REGISTER events because we will also receive those events for devices which already existed when we registered the notifier call. Signed-off-by: Sven Eckelmann Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed