Skip to content
Commit c22a2ec5 authored by Xiaolei Wang's avatar Xiaolei Wang Committed by Bruce Ashfield
Browse files

video: fbdev: mxc_ipuv3_fb: Delete fbi->modelist when probe fails



Fix following kmmeleak when mxcfb_probe failed.

unreferenced object 0xc23e89c0 (size 64):
comm "swapper", pid 1, jiffies 4294937719 (age 904.960s)
hex dump (first 32 bytes):
18 3a 31 c2 18 3a 31 c2 51 cd f6 c0 39 00 00 00 .:1..:1.Q...9...
20 03 00 00 e0 01 00 00 ad 90 00 00 28 00 00 00 ...........(...
backtrace:
[<1cb620e9>] fb_add_videomode+0x34/0xa4
[<1cec9bc3>] lcdif_init+0x168/0x18c
[<f06b83bf>] mxc_dispdrv_gethandle+0x6c/0xa4
[<fa997dc6>] mxcfb_probe+0x450/0xd44
[<06ec28eb>] platform_probe+0x60/0xb0
[<201fe159>] really_probe+0x178/0x308
[<4e9bb1fa>] __driver_probe_device+0xcc/0xe0
[<9fee492e>] driver_probe_device+0x38/0xb4
[<d73b3f2b>] __driver_attach+0xdc/0xf0
[<2fb5d8c2>] bus_for_each_dev+0x6c/0xb0
[<44c695ff>] bus_add_driver+0xb8/0x1c8
[<1b02c8b5>] driver_register+0xb4/0xf8
[<98528c32>] do_one_initcall+0x98/0x1e4
[<75f15a2b>] kernel_init_freeable+0x1d8/0x21c
[<3fbce68c>] kernel_init+0x18/0x138
[<997021d6>] ret_from_fork+0x14/0x24

Signed-off-by: default avatarXiaolei Wang <xiaolei.wang@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent b49dd184
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment