commit | 59a2f3f00fd744dbad22593f47552037d3154ca6 | [log] [tgz] |
---|---|---|
author | Chengguang Xu <cgxu519@gmx.com> | Sat Apr 14 20:06:19 2018 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Thu May 03 09:37:50 2018 -0600 |
tree | 9d79f052fe5f935e926c0e6664e7c62aeae4056f | |
parent | f53823c18131e755905b4f654196fd2cc3953f6e [diff] |
nvme: fix potential memory leak in option parsing When specifying same string type option several times, current option parsing may cause memory leak. Hence, call kfree for previous one in this case. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>