From: Tobias Klauser Date: Fri, 10 Dec 2010 03:18:04 +0000 (+0000) Subject: bridge: Fix return values of br_multicast_add_group/br_multicast_new_group X-Git-Tag: v2.6.38-rc1~476^2~273 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c0833bcd4d302fe783b9f8286a00ca2999d6200;p=pandora-kernel.git bridge: Fix return values of br_multicast_add_group/br_multicast_new_group If br_multicast_new_group returns NULL, we would return 0 (no error) to the caller of br_multicast_add_group, which is not what we want. Instead br_multicast_new_group should return ERR_PTR(-ENOMEM) in this case. Also propagate the error number returned by br_mdb_rehash properly. Signed-off-by: Tobias Klauser Signed-off-by: David S. Miller --- Reading git-diff-tree failed