linux-cp: Fix coverity issue 38/35138/3
authorPim van Pelt <pim@ipng.nl>
Fri, 28 Jan 2022 14:29:21 +0000 (14:29 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 28 Jan 2022 16:46:12 +0000 (16:46 +0000)
commit307ff11acbe811b7834f58a5bd14dd3038c991cd
tree556bdf9e864523cbba93e5a1d9fbb650cc006ce0
parent15d0215b9ca91f4964ba3a5528b1f38f84aaf158
linux-cp: Fix coverity issue

Type: fix

Possible negative return in open(), do not use curr_ns_fd if it is
negative.  Addresses Coverity issue 248535

Signed-off-by: Pim van Pelt <pim@ipng.nl>
Change-Id: I8429ede0f1fe9fe6619e3c4dbd83adb620ea62c2
src/plugins/linux-cp/lcp_nl.c