Commit b255ef4
eth: bcmsysport: fix call balance of priv->clk handling routines
Check the return value of clk_prepare_enable to ensure that priv->clk has
been successfully enabled.
If priv->clk was not enabled during bcm_sysport_probe, bcm_sysport_resume,
or bcm_sysport_open, it must not be disabled in any subsequent execution
paths.
Fixes: 31bc72d ("net: systemport: fetch and use clock resources")
Signed-off-by: Vitalii Mordan <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent a024e37 commit b255ef4
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1933 | 1933 | | |
1934 | 1934 | | |
1935 | 1935 | | |
1936 | | - | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
1937 | 1941 | | |
1938 | 1942 | | |
1939 | 1943 | | |
| |||
2591 | 2595 | | |
2592 | 2596 | | |
2593 | 2597 | | |
2594 | | - | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
2595 | 2603 | | |
2596 | 2604 | | |
2597 | 2605 | | |
| |||
2605 | 2613 | | |
2606 | 2614 | | |
2607 | 2615 | | |
| 2616 | + | |
| 2617 | + | |
2608 | 2618 | | |
2609 | 2619 | | |
2610 | 2620 | | |
| |||
2774 | 2784 | | |
2775 | 2785 | | |
2776 | 2786 | | |
2777 | | - | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
2778 | 2793 | | |
2779 | 2794 | | |
2780 | 2795 | | |
| |||
0 commit comments