diff options
author | Johannes Thumshirn <[email protected]> | 2018-01-25 09:09:25 +0100 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2018-01-25 18:41:39 +0100 |
commit | 6e49412016f5f28ae36c3eaa5a36ec787b788951 (patch) | |
tree | 91644918bd8b60f549d46231469a53335f49c1db /net/unix/sysctl_net_unix.c | |
parent | ee9aebb27cbdac677525e0e56e8844cf4bf46461 (diff) |
nvme: don't free uuid pointer before printing it
Commit df351ef73789 ("nvme-fabrics: fix memory leak when parsing host ID
option") fixed the leak of 'p' but in case uuid_parse() fails the memory
is freed before the error print that is using it.
Free it after printing eventual errors.
Signed-off-by: Johannes Thumshirn <[email protected]>
Fixes: df351ef73789 ("nvme-fabrics: fix memory leak when parsing host ID option")
Reported-by: Dan Carpenter <[email protected]>
Reviewed-by: Max Gurtovoy <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions