We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b821646 commit 65c66afCopy full SHA for 65c66af
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
@@ -1011,10 +1011,11 @@ static int bgx_init_of_phy(struct bgx *bgx)
1011
}
1012
1013
lmac++;
1014
- if (lmac == MAX_LMAC_PER_BGX)
+ if (lmac == MAX_LMAC_PER_BGX) {
1015
+ of_node_put(node);
1016
break;
1017
+ }
1018
- of_node_put(node);
1019
return 0;
1020
1021
defer:
0 commit comments