diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-04-14 20:06:19 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-03 09:37:50 -0600 |
commit | 59a2f3f00fd744dbad22593f47552037d3154ca6 (patch) | |
tree | 9d79f052fe5f935e926c0e6664e7c62aeae4056f /kernel/panic.c | |
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>
Diffstat (limited to 'kernel/panic.c')
0 files changed, 0 insertions, 0 deletions