bdev/nvme: fix release reference to channel in apply firmware RPC
Fixes #1176 Change-Id: Ie694c9cd492fec5486683e6cb04dc11892e0a493 Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/483704 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Alexey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
3424def90a
commit
1a30ba7f25
@ -533,6 +533,11 @@ apply_firmware_cleanup(void *cb_arg)
|
||||
free_rpc_apply_firmware(firm_ctx->req);
|
||||
free(firm_ctx->req);
|
||||
}
|
||||
|
||||
if (firm_ctx->ch) {
|
||||
spdk_put_io_channel(firm_ctx->ch);
|
||||
}
|
||||
|
||||
TAILQ_FOREACH_SAFE(opt, &firm_ctx->desc_head, tqlst, tmp) {
|
||||
TAILQ_REMOVE(&firm_ctx->desc_head, opt, tqlst);
|
||||
spdk_bdev_close(opt->desc);
|
||||
|
Loading…
Reference in New Issue
Block a user