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.
openwrt/target/linux/generic
Mathias Kresin fdf6760cda kernel: improve ubi auto attach code readability
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
..
backport-4.9 kernel: backport a change to 4.9 which disables overly aggressive warnings on gcc 8 6 years ago
backport-4.14 kernel: backport fixes for GCC 8 errors in syscall definitions 6 years ago
files kernel: rtl8366-smi: add Realtek switch management via mii-bus 6 years ago
hack-4.9 kernel: adjust bridge port isolate patch to match upstream attribute naming 6 years ago
hack-4.14 kernel: replace bridge port isolate hack with upstream patch backport on 4.14 6 years ago
image treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
other-files kernel: move initramfs's init script out of base-files 7 years ago
pending-3.18 kernel: adjust bridge port isolate patch to match upstream attribute naming 6 years ago
pending-4.9 kernel: improve ubi auto attach code readability 6 years ago
pending-4.14 kernel: improve ubi auto attach code readability 6 years ago
PATCHES kernel: update PATCHES with a stricter policy 11 years ago
config-3.18 config: extend small_flash feature 6 years ago
config-4.9 config: extend small_flash feature 6 years ago
config-4.14 config: extend small_flash feature 6 years ago