Commit fa1f26b
mtd: rawnand: omap2: fix device leak on probe failure
Make sure to drop the reference to the elm device taken by
of_find_device_by_node() during probe on errors and on driver unload.
Fixes: 62116e5 ("mtd: nand: omap2: Support for hardware BCH error correction.")
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>1 parent 8ed4728 commit fa1f26b
1 file changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1979 | 1979 | | |
1980 | 1980 | | |
1981 | 1981 | | |
1982 | | - | |
| 1982 | + | |
1983 | 1983 | | |
1984 | 1984 | | |
1985 | 1985 | | |
| |||
2016 | 2016 | | |
2017 | 2017 | | |
2018 | 2018 | | |
2019 | | - | |
| 2019 | + | |
2020 | 2020 | | |
2021 | 2021 | | |
2022 | 2022 | | |
| |||
2054 | 2054 | | |
2055 | 2055 | | |
2056 | 2056 | | |
2057 | | - | |
| 2057 | + | |
| 2058 | + | |
2058 | 2059 | | |
2059 | 2060 | | |
2060 | 2061 | | |
| |||
2073 | 2074 | | |
2074 | 2075 | | |
2075 | 2076 | | |
2076 | | - | |
| 2077 | + | |
2077 | 2078 | | |
2078 | 2079 | | |
2079 | 2080 | | |
| |||
2083 | 2084 | | |
2084 | 2085 | | |
2085 | 2086 | | |
2086 | | - | |
| 2087 | + | |
| 2088 | + | |
2087 | 2089 | | |
2088 | 2090 | | |
2089 | 2091 | | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
2090 | 2105 | | |
2091 | 2106 | | |
2092 | 2107 | | |
| |||
2187 | 2202 | | |
2188 | 2203 | | |
2189 | 2204 | | |
| 2205 | + | |
2190 | 2206 | | |
2191 | 2207 | | |
2192 | 2208 | | |
| |||
0 commit comments