summaryrefslogtreecommitdiffstats
path: root/drivers/video/cobalt_lcdfb.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-11-19 10:40:15 +0530
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-11-19 10:41:50 +0200
commitc415187b689842e8bb85135c070c822c2505f805 (patch)
tree9304f82bc6a881e9a0a2105651992bd023bdff38 /drivers/video/cobalt_lcdfb.c
parentdffc70ade1d13edd186f542718c4d78a31d92fb8 (diff)
OMAPFB: Fix possible null pointer dereferencing
Commit 952cbaaa9b8beacc425f9aedf370468cbb737a2c (OMAPFB: Change dssdev->manager references) added checks for OMAPFB_WAITFORVSYNC ioctl to verify that the display, output and overlay manager exist. However, the code erroneously uses && for each part, which means that OMAPFB_WAITFORVSYNC may crash the kernel if no display, output or manager is associated with the framebuffer. This patch fixes the issue by using ||. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/cobalt_lcdfb.c')
0 files changed, 0 insertions, 0 deletions