Files
linux/drivers/gpu/drm/qxl/qxl_ioctl.c
Frediano Ziglio e0cf83cc3d drm/qxl: Do not leak memory if qxl_release_list_add fails
commit 8451cc964c upstream.

If the function fails reference counter to the object is not decremented
causing leaks.
This is hard to spot as it happens only on very low memory situations.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-08-03 09:29:08 -07:00

12 KiB