Searched hist:"10 d486a30c5944320915ace3be8c15a8be1215cb" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/core/ |
H A D | net_namespace.c | diff 10d486a30c5944320915ace3be8c15a8be1215cb Fri Jun 09 07:41:57 CDT 2017 Nicolas Dichtel <nicolas.dichtel@6wind.com> netns: fix error code when the nsid is already used
When the user tries to assign a specific nsid, idr_alloc() is called with the range [nsid, nsid+1]. If this nsid is already used, idr_alloc() returns ENOSPC (No space left on device). In our case, it's better to return EEXIST to make it clear that the nsid is not available.
CC: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|