From: Eric Dumazet Date: Tue, 30 Aug 2011 22:57:00 +0000 (-0400) Subject: net: ipv4: relax AF_INET check in bind() X-Git-Tag: v3.1-rc7~25^2~12^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29c486df6a208432b370bd4be99ae1369ede28d8;p=pandora-kernel.git net: ipv4: relax AF_INET check in bind() commit d0733d2e29b65 (Check for mistakenly passed in non-IPv4 address) added regression on legacy apps that use bind() with AF_UNSPEC family. Relax the check, but make sure the bind() is done on INADDR_ANY addresses, as AF_UNSPEC has probably no sane meaning for other addresses. Bugzilla reference : https://bugzilla.kernel.org/show_bug.cgi?id=42012 Signed-off-by: Eric Dumazet Reported-and-bisected-by: Rene Meier CC: Marcus Meissner Signed-off-by: David S. Miller --- Reading git-diff-tree failed