From: Frediano Ziglio Date: Wed, 3 Jun 2015 11:09:10 +0000 (+0100) Subject: drm/qxl: Do not leak memory if qxl_release_list_add fails X-Git-Tag: omap-for-v4.3/legacy-v2-signed~46^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8451cc964c1d193b989c41a44e5e77109cc696f8;p=pandora-kernel.git drm/qxl: Do not leak memory if qxl_release_list_add fails 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 Cc: stable@vger.kernel.org Reviewed-by: Dave Airlie Signed-off-by: Dave Airlie --- Reading git-diff-tree failed