projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9ca4a9
)
video: rockchip: fb: fix double free when use devm_kzalloc() buf
author
Huang Jiachai
<hjc@rock-chips.com>
Mon, 29 Feb 2016 01:39:24 +0000
(09:39 +0800)
committer
Gerrit Code Review
<gerrit@rock-chips.com>
Tue, 1 Mar 2016 11:57:27 +0000
(19:57 +0800)
Change-Id: I12872a61e2f07da23189cd57e2a355d73b98b005
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
drivers/video/rockchip/rk_fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/rk_fb.c
b/drivers/video/rockchip/rk_fb.c
index 567b6cdc114391074c276374066859c0d5c9f53e..7758ca9ab56f0834ff3f56351760f357eb03e970 100644
(file)
--- 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;
}