diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-06-25 10:34:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-26 14:08:57 +0200 |
commit | 9d49973b08488f59dd0ada269d9dca210d1fd365 (patch) | |
tree | 5a6fa655d1d59f01465426cf882901d69ee127c0 /tools/lib/string.c | |
parent | 5d0e6a5e44416cdfd8b391fa46c69f7d08f9dd0d (diff) |
um: virtio_uml: fix memory leak on init failures
commit 7ad28e0df7ee9dbcb793bb88dd81d4d22bb9a10e upstream.
If initialization fails, e.g. because the connection failed,
we leak the 'vu_dev'. Fix that. Reported by smatch.
Fixes: 5d38f324993f ("um: drivers: Add virtio vhost-user driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/string.c')
0 files changed, 0 insertions, 0 deletions