From: Hong zhi guo Date: Sun, 24 Mar 2013 03:26:47 +0000 (+0000) Subject: bridge: avoid br_ifinfo_notify when nothing changed X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~346 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b99a99390ca328f4678ac04358c94744ab0f8b4;p=pandora-kernel.git bridge: avoid br_ifinfo_notify when nothing changed When neither IFF_BRIDGE nor IFF_BRIDGE_PORT is set, and afspec == NULL but protinfo != NULL, we run into "if (err == 0) br_ifinfo_notify(RTM_NEWLINK, p);" with random value in ret. Thanks to Sergei for pointing out the error in commit comments. Signed-off-by: Hong Zhiguo Signed-off-by: David S. Miller --- Reading git-diff-tree failed