Commit 72f3d3d
mtd: ubi: Restore missing cleanup on ubi_init() failure path
We need to clean-up debugfs and ubiblock if we fail after initialising
them.
Signed-off-by: Ben Hutchings <[email protected]>
Fixes: 927c145 ("mtd: ubi: attach from device tree")
Signed-off-by: Richard Weinberger <[email protected]>1 parent 06776df commit 72f3d3d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1372 | 1372 | | |
1373 | 1373 | | |
1374 | 1374 | | |
1375 | | - | |
| 1375 | + | |
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
| |||
1387 | 1387 | | |
1388 | 1388 | | |
1389 | 1389 | | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1390 | 1393 | | |
1391 | 1394 | | |
1392 | 1395 | | |
| |||
0 commit comments