Skip to content
Commit 4dacad61 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Tomi Valkeinen
Browse files

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: default avatarVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent f36fdacc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment