Messages in this thread Patch in this message | | | From | Lothar Waßmann <> | Subject | [PATCH 3/3] staging: drm/imx: fix double free bug in error path | Date | Tue, 25 Dec 2012 15:58:39 +0100 |
| |
kfree(imx_drm_encoder) is already being called at the label 'err_register'.
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> --- drivers/staging/imx-drm/imx-drm-core.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx-drm-core.c index ecf0f44..cec19f1 100644 --- a/drivers/staging/imx-drm/imx-drm-core.c +++ b/drivers/staging/imx-drm/imx-drm-core.c @@ -584,7 +584,6 @@ int imx_drm_add_encoder(struct drm_encoder *encoder, ret = imx_drm_encoder_register(imx_drm_encoder); if (ret) { - kfree(imx_drm_encoder); ret = -ENOMEM; goto err_register; } -- 1.7.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |