]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
create-ns: Do not return directly without freeing fd
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 25 Apr 2019 14:20:29 +0000 (23:20 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sat, 27 Apr 2019 05:10:49 +0000 (14:10 +0900)
commitb0c8a309266c2daf6ebadf9ab14884c6954765a1
tree83be4810b99aa65bc6b7daeaef6c486725dd73dd
parente3c487c6d9c145ba0b90d4ef227510b4faa33e98
create-ns: Do not return directly without freeing fd

It was returning an error value without freeding open fd for the device.
This patch replaces 'return' with 'goto' to free fd.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme.c