Skip to content
Commit beb0a43f authored by Axel Lin's avatar Axel Lin Committed by Richard Purdie
Browse files

backlight: l4f00242t03: fix error handling in l4f00242t03_probe



Error handling fixes:
1. In the case of kzalloc failure, simple return -ENOMEM instead of goto
   err. ( priv is NULL in this case )
2. In the case of gpio_request fail for reset_gpio and data_enable_gpio,
   properly release resources by goto err and err2 respectively.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarAlberto Panizzo <maramaopercheseimorto@gmail.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent ee378a5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment