diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2018-02-06 14:48:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-11 16:19:46 +0100 |
commit | 1b919f5ac999e67fb3c6eb2130e5f9f8207e07f2 (patch) | |
tree | 43a6024fbfabd434399f309df424d3d22244f405 /drivers/edac/tile_edac.c | |
parent | 94522bee72fd4ba2a4f1b6dc3e7439dc8f4ce501 (diff) |
netlink: ensure to loop over all netns in genlmsg_multicast_allns()
[ Upstream commit cb9f7a9a5c96a773bbc9c70660dc600cfff82f82 ]
Nowadays, nlmsg_multicast() returns only 0 or -ESRCH but this was not the
case when commit 134e63756d5f was pushed.
However, there was no reason to stop the loop if a netns does not have
listeners.
Returns -ESRCH only if there was no listeners in all netns.
To avoid having the same problem in the future, I didn't take the
assumption that nlmsg_multicast() returns only 0 or -ESRCH.
Fixes: 134e63756d5f ("genetlink: make netns aware")
CC: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/edac/tile_edac.c')
0 files changed, 0 insertions, 0 deletions