Commit 263c6d7
net: hns: Fix for missing of_node_put() after of_parse_phandle()
In hns enet driver, we use of_parse_handle() to get hold of the
device node related to "ae-handle" but we have missed to put
the node reference using of_node_put() after we are done using
the node. This patch fixes it.
Note:
This problem is stated in Link: https://lkml.org/lkml/2018/12/22/217
Fixes: 48189d6 ("net: hns: enet specifies a reference to dsaf")
Reported-by: Alexey Khoroshilov <[email protected]>
Signed-off-by: Yonglong Liu <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 3da15ad commit 263c6d7
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2418 | 2418 | | |
2419 | 2419 | | |
2420 | 2420 | | |
| 2421 | + | |
| 2422 | + | |
2421 | 2423 | | |
2422 | 2424 | | |
2423 | 2425 | | |
| |||
2447 | 2449 | | |
2448 | 2450 | | |
2449 | 2451 | | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
2450 | 2455 | | |
2451 | 2456 | | |
2452 | 2457 | | |
| |||
0 commit comments