aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2017-06-09 14:41:57 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-10 15:58:50 -0400
commit10d486a30c5944320915ace3be8c15a8be1215cb (patch)
treeac279bdfda6a5b3340383e7c541beaff2350fa0a /drivers
parentnetns: define extack error msg for nsis cmds (diff)
downloadlinux-dev-10d486a30c5944320915ace3be8c15a8be1215cb.tar.xz
linux-dev-10d486a30c5944320915ace3be8c15a8be1215cb.zip
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions