mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
committed by
Gerrit Code Review
parent
a9ca4a9142
commit
37f4ab272e
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user