projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c47381
)
leds: flash: leds-qcom-flash: Put child node if registration failed
author
Fenglin Wu
<quic_fenglinw@quicinc.com>
Tue, 25 Jul 2023 09:57:21 +0000
(17:57 +0800)
committer
Lee Jones
<lee@kernel.org>
Fri, 28 Jul 2023 11:17:40 +0000
(12:17 +0100)
Put the child node if register flash LED device failed.
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Link:
https://lore.kernel.org/r/20230725-leds-qcom-flash-driver-tiny-fixes-v2-3-0f5cbce5fed0@quicinc.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/flash/leds-qcom-flash.c
patch
|
blob
|
history
diff --git
a/drivers/leds/flash/leds-qcom-flash.c
b/drivers/leds/flash/leds-qcom-flash.c
index
29cf094
..
a73d3ea
100644
(file)
--- a/
drivers/leds/flash/leds-qcom-flash.c
+++ b/
drivers/leds/flash/leds-qcom-flash.c
@@
-749,6
+749,7
@@
static int qcom_flash_led_probe(struct platform_device *pdev)
return 0;
release:
+ fwnode_handle_put(child);
while (flash_data->v4l2_flash[flash_data->leds_count] && flash_data->leds_count)
v4l2_flash_release(flash_data->v4l2_flash[flash_data->leds_count--]);
return rc;