vrahane closed pull request #1263: adp5061: mutex should unlock on error URL: https://github.com/apache/mynewt-core/pull/1263
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/hw/drivers/chg_ctrl/adp5061/src/adp5061.c b/hw/drivers/chg_ctrl/adp5061/src/adp5061.c index 03b2d7cd44..9fe106628c 100644 --- a/hw/drivers/chg_ctrl/adp5061/src/adp5061.c +++ b/hw/drivers/chg_ctrl/adp5061/src/adp5061.c @@ -217,9 +217,10 @@ adp5061_get_reg(struct adp5061_dev *dev, uint8_t addr, uint8_t *value) OS_TICKS_PER_SEC / 10, 1); *value = payload; - adp5061_itf_unlock(&dev->a_chg_ctrl.cc_itf); err: + adp5061_itf_unlock(&dev->a_chg_ctrl.cc_itf); + return rc; } ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services