The patch titled sock_create bad error return has been added to the -mm tree. Its filename is sock_create-bad-error-return.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: sock_create bad error return From: Stephen Hemminger <shemminger@xxxxxxxx> If socket create call races with module unload, it correctly fails the socket call but doesn't return an error. This race is theoritical because the sock->ops are always the same and non-modular. Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- net/socket.c | 1 + 1 files changed, 1 insertion(+) diff -puN net/socket.c~sock_create-bad-error-return net/socket.c --- a/net/socket.c~sock_create-bad-error-return +++ a/net/socket.c @@ -1211,6 +1211,7 @@ static int __sock_create(int family, int * socket at sock_release time we decrement its refcnt. */ if (!try_module_get(sock->ops->owner)) { + err = -EAGAIN; sock->ops = NULL; goto out_module_put; } _ Patches currently in -mm which might be from shemminger@xxxxxxxx are git-netdev-all.patch via-rhine-napi-support.patch via-rhine-napi-poll-enable.patch forcedeth-move-mac-address-setup-teardown.patch forcedeth-mac-address-corrected.patch forcdeth-revised-napi-support.patch sock_create-bad-error-return.patch socket-code-style-cleanup.patch net-drop-unused-elements-from-net_proto_family.patch net-socket-family-using-rcu.patch sock_register-interface-changes.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html