diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index 25eeb6d2a75a..edcc7867ce03 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -963,7 +963,7 @@ static struct genl_family genl_ctrl __ro_after_init = { static int genl_bind(struct net *net, int group) { struct genl_family *f; - int err = -ENOENT; + int err = 0; unsigned int id; down_read(&cb_lock);