omapfb: panel-sharp-ls037v7dw01: fix check of gpio_to_desc() return value
authorVladimir Zapolskiy <vz@mleia.com>
Tue, 22 Mar 2016 22:51:54 +0000 (00:51 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 18 Apr 2016 09:18:37 +0000 (12:18 +0300)
commit4dacad61514494f2eba9e60d5b4aa71971dac6a1
treed8abfaadaf33b38aea8ad57a13a52443cba91c83
parentf36fdacc5fcdca7b0c0d89f031fcdc89717e0be3
omapfb: panel-sharp-ls037v7dw01: fix check of gpio_to_desc() return value

The change fixes a check of gpio_to_desc() return value, the function
returns either a valid pointer to struct gpio_desc or NULL, this makes
IS_ERR() check invalid and may lead to a NULL pointer dereference in
runtime.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c