From: Huang Jiachai Date: Mon, 29 Feb 2016 01:39:24 +0000 (+0800) Subject: video: rockchip: fb: fix double free when use devm_kzalloc() buf X-Git-Tag: firefly_0821_release~3333 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=37f4ab272e324d7db4ed9934b95c22fb07653da0;p=firefly-linux-kernel-4.4.55.git video: rockchip: fb: fix double free when use devm_kzalloc() buf Change-Id: I12872a61e2f07da23189cd57e2a355d73b98b005 Signed-off-by: Huang Jiachai --- 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; }