You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Move the put_mtd_device() called on multiple error conditions to a goto label to use it later for more error conditions. The early return on failed open of the mtd device and mismatching mtd type allows to get rid of one level of indentation. By jumping to the cleanup code, a refcount bug is fixed for the wrong flash type condition. While at it, make clear that we only check for the UBI magic if the read from flash was successful. Signed-off-by: Mathias Kresin <dev@kresin.me> |
6 years ago | |
---|---|---|
.. | ||
adm5120 | 6 years ago | |
adm8668 | 6 years ago | |
apm821xx | 6 years ago | |
ar7 | 6 years ago | |
ar71xx | 6 years ago | |
arc770 | 6 years ago | |
archs38 | 6 years ago | |
armvirt | 6 years ago | |
at91 | 6 years ago | |
ath25 | 6 years ago | |
ath79 | 6 years ago | |
au1000 | 6 years ago | |
bcm53xx | 6 years ago | |
brcm47xx | 6 years ago | |
brcm63xx | 6 years ago | |
brcm2708 | 6 years ago | |
cns3xxx | 6 years ago | |
gemini | 6 years ago | |
generic | 6 years ago | |
imx6 | 6 years ago | |
ipq40xx | 6 years ago | |
ipq806x | 6 years ago | |
ixp4xx | 6 years ago | |
kirkwood | 6 years ago | |
lantiq | 6 years ago | |
layerscape | 6 years ago | |
malta | 7 years ago | |
mcs814x | 6 years ago | |
mediatek | 6 years ago | |
mpc85xx | 6 years ago | |
mvebu | 6 years ago | |
mxs | 6 years ago | |
octeon | 6 years ago | |
octeontx | 6 years ago | |
omap | 6 years ago | |
omap24xx | 7 years ago | |
orion | 6 years ago | |
oxnas | 6 years ago | |
pistachio | 6 years ago | |
ppc40x | 6 years ago | |
ppc44x | 6 years ago | |
ramips | 6 years ago | |
rb532 | 6 years ago | |
sunxi | 6 years ago | |
uml | 6 years ago | |
x86 | 6 years ago | |
xburst | 6 years ago | |
zynq | 6 years ago | |
Makefile |