summaryrefslogtreecommitdiffstats
path: root/fs/Kconfig
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2017-11-09 18:09:28 +0100
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-11-09 18:09:28 +0100
commit2e307cba0c56eba45649eb0f0f43b999e64aae94 (patch)
treead7b7966aa420b6afd3da33b02381e54b2d10fc3 /fs/Kconfig
parentvideo: sa1100fb: move pseudo palette into sa1100fb_info structure (diff)
downloadlinux-2e307cba0c56eba45649eb0f0f43b999e64aae94.tar.xz
linux-2e307cba0c56eba45649eb0f0f43b999e64aae94.zip
video: fbdev: au1200fb: Fix a potential double free
If 'fb_alloc_cmap()' fails, 'fbi->pseudo_palette' is freed and an error code is returned by 'au1200fb_init_fbinfo()'. The only caller, 'au1200fb_drv_probe()' goes to an error handling path where resources allocated in 'fb_alloc_cmap()' are freed. This leads to a double free of 'fbi->pseudo_palette'. Fix it by letting the caller free all resources in case of failure in 'au1200fb_init_fbinfo()'. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions