From 37f4ab272e324d7db4ed9934b95c22fb07653da0 Mon Sep 17 00:00:00 2001 From: Huang Jiachai Date: Mon, 29 Feb 2016 09:39:24 +0800 Subject: [PATCH] video: rockchip: fb: fix double free when use devm_kzalloc() buf Change-Id: I12872a61e2f07da23189cd57e2a355d73b98b005 Signed-off-by: Huang Jiachai --- drivers/video/rockchip/rk_fb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index 567b6cdc1143..7758ca9ab56f 100644 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -4368,9 +4368,6 @@ static int rk_fb_probe(struct platform_device *pdev) static int rk_fb_remove(struct platform_device *pdev) { - struct rk_fb *rk_fb = platform_get_drvdata(pdev); - - kfree(rk_fb); platform_set_drvdata(pdev, NULL); return 0; } -- 2.34.1