]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
ioctl: Fix double-free in a loop of get_property
authorMinwoo Im <minwoo.im@samsung.com>
Wed, 24 Apr 2019 00:46:29 +0000 (01:46 +0100)
committerMinwoo Im <minwoo.im@samsung.com>
Wed, 24 Apr 2019 00:46:29 +0000 (01:46 +0100)
commitd16e1d2784a48c9b25e58a0e821c737670c6cdc8
tree7080d8900e6253cd7cb3d9acc1c6720631d681e8
parentfefedba848578c83ccefcb9be0b71f13e9913481
ioctl: Fix double-free in a loop of get_property

As it was reported, *pbar could be double-freed in case
get_property_helper() fails in the middle of the loop.

This issue was reported by Ken Heitke on:
  https://github.com/linux-nvme/nvme-cli/pull/471

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