commit | 7ad28e0df7ee9dbcb793bb88dd81d4d22bb9a10e | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Fri Jun 25 10:34:37 2021 +0200 |
committer | Richard Weinberger <richard@nod.at> | Thu Aug 26 22:28:02 2021 +0200 |
tree | 7e617d730538b978c25b6783b2c629c1cebe8185 | |
parent | 21976f2b747edd9350336cdd6700b792a3bc2170 [diff] |
um: virtio_uml: fix memory leak on init failures 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>