Commit db2ec3c
dpll: fix userspace availability of pins
If parent pin was unregistered but child pin was not, the userspace
would see the "zombie" pins - the ones that were registered with
a parent pin (dpll_pin_on_pin_register(..)).
Technically those are not available - as there is no dpll device in the
system. Do not dump those pins and prevent userspace from any
interaction with them. Provide a unified function to determine if the
pin is available and use it before acting/responding for user requests.
Fixes: 9d71b54 ("dpll: netlink: Add DPLL framework base functions")
Reviewed-by: Jan Glaza <jan.glaza@intel.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 830ead5 commit db2ec3c
1 file changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
556 | 574 | | |
557 | 575 | | |
558 | 576 | | |
| |||
579 | 597 | | |
580 | 598 | | |
581 | 599 | | |
582 | | - | |
| 600 | + | |
583 | 601 | | |
584 | 602 | | |
585 | 603 | | |
| |||
1130 | 1148 | | |
1131 | 1149 | | |
1132 | 1150 | | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
1133 | 1155 | | |
1134 | 1156 | | |
1135 | 1157 | | |
| |||
1179 | 1201 | | |
1180 | 1202 | | |
1181 | 1203 | | |
| 1204 | + | |
| 1205 | + | |
1182 | 1206 | | |
1183 | 1207 | | |
1184 | 1208 | | |
| |||
1441 | 1465 | | |
1442 | 1466 | | |
1443 | 1467 | | |
1444 | | - | |
| 1468 | + | |
| 1469 | + | |
1445 | 1470 | | |
1446 | 1471 | | |
1447 | 1472 | | |
| |||
0 commit comments