mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
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 <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>