diff options
author | Lothar Waßmann <LW@KARO-electronics.de> | 2012-12-25 15:58:39 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-07 12:27:52 -0800 |
commit | efe57d5977fa62b8fdf3a38c236d1aa5351228be (patch) | |
tree | 8d4cdfb81f072b307271ea3bfc1f919d3e062a34 /drivers/staging/imx-drm | |
parent | 9a8f3f4490922dd62556a8004aa06bc3f1054894 (diff) | |
download | talos-obmc-linux-efe57d5977fa62b8fdf3a38c236d1aa5351228be.tar.gz talos-obmc-linux-efe57d5977fa62b8fdf3a38c236d1aa5351228be.zip |
staging: drm/imx: fix double free bug in error path
kfree(imx_drm_encoder) is already being called at the label
'err_register'.
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/imx-drm')
-rw-r--r-- | 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 ecf0f44bc70e..cec19f1cf56c 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; } |