aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2014-11-01 01:40:47 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-11-06 16:41:36 +0200
commit816764859a5347315cb2f1578cf0252ee129c128 (patch)
treee8a065da665352fcbc1b63712b80651f75fd07da /scripts/stackusage
parentfbdev: mxsfb: Add support for mx6sl and mx6sx (diff)
downloadlinux-816764859a5347315cb2f1578cf0252ee129c128.tar.gz
linux-816764859a5347315cb2f1578cf0252ee129c128.zip
m501fb: don't return zero on failure path in sm501fb_probe()
If no framebuffers found, sm501fb_probe() breaks off initialization, deallocates sm501fb_info, but returns zero. As a result, use after free can happen in sm501fb_remove(). The patch adds -ENODEV as a return value in this case. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions