]> git.baikalelectronics.ru Git - kernel.git/commit
netns: returns always an id in __peernet2id()
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 7 May 2015 09:02:47 +0000 (11:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 May 2015 02:15:30 +0000 (22:15 -0400)
commit72dc1bf09f8a23a863ccf7dc69fad90b5fe6926c
tree41d02b858aef5ce2735ef71324290a6b3e115ec5
parent160ecc4d83d140b6ac6827a6610873d391d66705
netns: returns always an id in __peernet2id()

All callers of this function expect a nsid, not an error.
Thus, returns NETNSA_NSID_NOT_ASSIGNED in case of error so that callers
don't have to convert the error to NETNSA_NSID_NOT_ASSIGNED.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c