summaryrefslogtreecommitdiffstats
path: root/sound/mips
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2019-09-30 22:42:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-10 14:50:32 +0200
commite0b0cb9388642c104838fac100a4af32745621e2 (patch)
treef25a5186cb5d1fff89c24a9cc47e81a092a67f0d /sound/mips
parentbinder: Fix comment headers on binder_alloc_prepare_to_free() (diff)
downloadlinux-e0b0cb9388642c104838fac100a4af32745621e2.tar.xz
linux-e0b0cb9388642c104838fac100a4af32745621e2.zip
virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr
In hgcm_call_preprocess_linaddr memory is allocated for bounce_buf but is not released if copy_form_user fails. In order to prevent memory leak in case of failure, the assignment to bounce_buf_ret is moved before the error check. This way the allocated bounce_buf will be released by the caller. Fixes: 579db9d45cb4 ("virt: Add vboxguest VMMDEV communication code") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20190930204223.3660-1-navid.emamdoost@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/mips')
0 files changed, 0 insertions, 0 deletions