Page MenuHomeFreeBSD

D30293.id89614.diff
No OneTemporary

D30293.id89614.diff

diff --git a/sys/dev/extres/regulator/regulator.c b/sys/dev/extres/regulator/regulator.c
--- a/sys/dev/extres/regulator/regulator.c
+++ b/sys/dev/extres/regulator/regulator.c
@@ -985,6 +985,10 @@
KASSERT(regnode->ref_cnt > 0,
("Attempt to access unreferenced regulator: %s\n", regnode->name));
+ if (reg->enable_cnt == 0) {
+ *status = 0;
+ return (0);
+ }
REG_TOPO_SLOCK();
rv = regnode_status(regnode, status);
REG_TOPO_UNLOCK();

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 14, 8:25 PM (7 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14633388
Default Alt Text
D30293.id89614.diff (450 B)

Event Timeline