From: Ezequiel Garcia Date: Tue, 2 Sep 2014 12:51:15 +0000 (-0300) Subject: drm/tilcdc: Fix the error path in tilcdc_load() X-Git-Tag: fixes-against-v3.18-rc2~73^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b478e336b3e75505707a11e78ef8b964ef0a03af;p=pandora-kernel.git drm/tilcdc: Fix the error path in tilcdc_load() The current error path calls tilcdc_unload() in case of an error to release the resources. However, this is wrong because not all resources have been allocated by the time an error occurs in tilcdc_load(). To fix it, this commit adds proper labels to bail out at the different stages in the load function, and release only the resources actually allocated. Tested-by: Darren Etheridge Tested-by: Johannes Pointner Signed-off-by: Ezequiel Garcia Signed-off-by: Dave Airlie --- Reading git-diff-tree failed