mbox series

[ndctl,v2,0/2] fix two issues reported by Coverity

Message ID c3c08075-4815-8e84-2ba6-64644e72abee@huawei.com (mailing list archive)
Headers show
Series fix two issues reported by Coverity | expand

Message

Zhiqiang Liu July 6, 2021, 4:31 a.m. UTC
Recently, we use Coverity to analysis the ndctl package, again.
Two issues should be resolved to make Coverity happy.

Zhiqiang Liu (2):
  libndctl: check return value of ndctl_pfn_get_namespace
  namespace: fix potentail fd leak problem in do_xaction_namespace()

 ndctl/namespace.c | 35 +++++++++++++++++++++++------------
 test/libndctl.c   |  4 ++--
 util/json.c       |  2 ++
 3 files changed, 27 insertions(+), 14 deletions(-)