From: Christian Engelmayer Date: Wed, 11 Feb 2015 20:58:23 +0000 (-0300) Subject: [media] si2165: Fix possible leak in si2165_upload_firmware() X-Git-Tag: omap-for-v4.2/o2_dc~62^2~1^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec73b9fdc7c4fe3da8937a8e7b6a03a1e002d6ac;p=pandora-kernel.git [media] si2165: Fix possible leak in si2165_upload_firmware() In case of an error function si2165_upload_firmware() releases the already requested firmware in the exit path. However, there is one deviation where the function directly returns. Use the correct cleanup so that the firmware memory gets freed correctly. Detected by Coverity CID 1269120. Signed-off-by: Christian Engelmayer Signed-off-by: Matthias Schwarzott Reviewed-by: Luis de Bethencourt Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed