]> git.baikalelectronics.ru Git - kernel.git/commit
OMAPDSS: HDMI: Fix possible NULL reference
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 27 Aug 2013 11:11:48 +0000 (14:11 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 29 Aug 2013 13:43:43 +0000 (16:43 +0300)
commitd7b6427e9395efc0bf523f48c64b667c5d7e8e45
tree4da05b2d46f576f40b5c82d8d6aabd21443e3e0c
parent1a101b4eac02fcada9337a941c0ed61df0dfd109
OMAPDSS: HDMI: Fix possible NULL reference

Commit 32714d57d024 (OMAPDSS: remove dispc's dependency to VENC/HDMI)
introduced a possible NULL reference bug in the HDMI driver when setting
timings. In practice the bug shouldn't happen, as the timings have been
verified earlier, and thus the timings should always be ok.

Fix the possible issue by moving the use of the timings pointer inside
the NULL check.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
drivers/video/omap2/dss/hdmi.c