Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102543299
D30293.id89614.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
450 B
Referenced Files
None
Subscribers
None
D30293.id89614.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D30293: extres: regulator: Fix regulator_status for already enable regulators
Attached
Detach File
Event Timeline
Log In to Comment