video: rockchip: fb: fix double free when use devm_kzalloc() buf

Change-Id: I12872a61e2f07da23189cd57e2a355d73b98b005
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
This commit is contained in:
Huang Jiachai
2016-02-29 09:39:24 +08:00
committed by Gerrit Code Review
parent a9ca4a9142
commit 37f4ab272e

View File

@@ -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;
}