Commit 8d57f221 authored by Antonino A. Daplas's avatar Antonino A. Daplas Committed by Linus Torvalds

[PATCH] savagefb: Fix kfree before use

par->edid is kfree'd before using in fb_edid_to_monspecs()
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 91bc89cf
...@@ -2021,8 +2021,8 @@ static int __devinit savagefb_probe (struct pci_dev* dev, ...@@ -2021,8 +2021,8 @@ static int __devinit savagefb_probe (struct pci_dev* dev,
#if defined(CONFIG_FB_SAVAGE_I2C) #if defined(CONFIG_FB_SAVAGE_I2C)
savagefb_create_i2c_busses(info); savagefb_create_i2c_busses(info);
savagefb_probe_i2c_connector(info, &par->edid); savagefb_probe_i2c_connector(info, &par->edid);
kfree(par->edid);
fb_edid_to_monspecs(par->edid, &info->monspecs); fb_edid_to_monspecs(par->edid, &info->monspecs);
kfree(par->edid);
fb_videomode_to_modelist(info->monspecs.modedb, fb_videomode_to_modelist(info->monspecs.modedb,
info->monspecs.modedb_len, info->monspecs.modedb_len,
&info->modelist); &info->modelist);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment