]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPFB: Fix possible null pointer dereferencing
authorTushar Behera <tushar.behera@linaro.org>
Mon, 19 Nov 2012 05:10:15 +0000 (10:40 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 19 Nov 2012 08:41:50 +0000 (10:41 +0200)
commit5983e8001e9a63ef2767024e1e9acd185e783214
tree9304f82bc6a881e9a0a2105651992bd023bdff38
parentb5abfc45b7867064f5c366f3293c38a6d53279e4
OMAPFB: Fix possible null pointer dereferencing

Commit 87b1eacc4973910afe7dc211c5f2e5d193e9b2a7 (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>
drivers/video/omap2/omapfb/omapfb-ioctl.c