Commit 70458f8
net: enetc: fix device and OF node leak at probe
Make sure to drop the references to the IERB OF node and platform device
taken by of_parse_phandle() and of_find_device_by_node() during probe.
Fixes: e7d48e5 ("net: enetc: add a mini driver for the Integrated Endpoint Register Block")
Cc: [email protected] # 5.13
Cc: Vladimir Oltean <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 3fa8402 commit 70458f8
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| 832 | + | |
832 | 833 | | |
833 | 834 | | |
834 | 835 | | |
835 | | - | |
| 836 | + | |
836 | 837 | | |
837 | 838 | | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
838 | 844 | | |
839 | 845 | | |
840 | 846 | | |
841 | 847 | | |
842 | 848 | | |
843 | 849 | | |
844 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
845 | 855 | | |
846 | 856 | | |
847 | 857 | | |
| |||
0 commit comments