forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/power/supply/ab8500_bmdata.c
....@@ -508,6 +508,7 @@
508508 btech = of_get_property(battery_node, "stericsson,battery-type", NULL);
509509 if (!btech) {
510510 dev_warn(dev, "missing property battery-name/type\n");
511
+ of_node_put(battery_node);
511512 return -EINVAL;
512513 }
513514