Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 90112aae authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Stephen Boyd
Browse files

power: qpnp-bms: fix rtc cleanup



Currently the BMS tries to close the rtc class if it fails to open.
However, when this happens, the open function returns NULL. Passing
a NULL to the rtc_class_close function crashes the kernel.

Fix this by doing nothing if the rtc class fails to open.

Change-Id: I30e7d7608b745815aaa8d5c43912e6a20b2eb6f7
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent d16571d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment