mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] savagefb: Fix kfree before use
par->edid is kfree'd before using in fb_edid_to_monspecs() Signed-off-by: Antonino Daplas <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
91bc89cf98
commit
8d57f2210e
1 changed files with 1 additions and 1 deletions
|
|
@ -2021,8 +2021,8 @@ static int __devinit savagefb_probe (struct pci_dev* dev,
|
|||
#if defined(CONFIG_FB_SAVAGE_I2C)
|
||||
savagefb_create_i2c_busses(info);
|
||||
savagefb_probe_i2c_connector(info, &par->edid);
|
||||
kfree(par->edid);
|
||||
fb_edid_to_monspecs(par->edid, &info->monspecs);
|
||||
kfree(par->edid);
|
||||
fb_videomode_to_modelist(info->monspecs.modedb,
|
||||
info->monspecs.modedb_len,
|
||||
&info->modelist);
|
||||
|
|
|
|||
Loading…
Reference in a new issue