diff options
author | Roland Dreier <roland@purestorage.com> | 2018-01-11 22:38:00 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-01-15 17:09:31 +0100 |
commit | df351ef73789345b4b6c00434c5fd1fca7175643 (patch) | |
tree | b6564018f48115e5489dd9066f266cbd3b70444a /security | |
parent | nvme: fix comment typos in nvme_create_io_queues (diff) | |
download | linux-df351ef73789345b4b6c00434c5fd1fca7175643.tar.xz linux-df351ef73789345b4b6c00434c5fd1fca7175643.zip |
nvme-fabrics: fix memory leak when parsing host ID option
We use match_strdup() to get a copy of the option string for host ID string, but
we just pass it to uuid_parse() and don't store the string pointer, so we need to
kfree() the string after parsing it.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions