]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
ioctl: Free memory if get_property for fabrics failed
authorMinwoo Im <minwoo.im.dev@gmail.com>
Sat, 6 Apr 2019 21:45:16 +0000 (06:45 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sat, 6 Apr 2019 21:45:16 +0000 (06:45 +0900)
commit07a2e53c9d7b737c37f88a31e381ef22d0ae3337
treec8d2feac92fa24601a119504d59e9a80920abbca
parent3b8b39c973524732df7416205f643cfcb4d607a3
ioctl: Free memory if get_property for fabrics failed

The given *pbar is allocated inside this function without freeing it
will be freed from the caller in case of show-regs subcommand for NVMe-oF
controller.

If Get Property is failed because it has PCIe transport, then it needs
to be freed here instead of caller.

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