From: Tushar Behera Date: Mon, 19 Nov 2012 05:10:15 +0000 (+0530) Subject: OMAPFB: Fix possible null pointer dereferencing X-Git-Tag: v3.7-rc7~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c415187b689842e8bb85135c070c822c2505f805;p=pandora-kernel.git 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 Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed