openwrt/target/linux/generic/files/drivers
Koen Vandeputte e10830193c generic: platform/mikrotik: release mtd device after use
The code uses get_mtd_device_nm() which must be followed by a call to
put_mtd_device() once the handle is no longer used.

This fixes spurious shutdown console messages such as:
[   83.099037] Removing MTD device #1 (hard_config) with use count 1

Reported-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
[Backported from master]
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2021-05-12 11:42:31 +02:00
..
misc owl-loader: fix crash caused by endian patch 2019-03-06 22:02:56 +01:00
mtd kernel: Fix off-by-one error in FIT mtd partition search. 2019-10-09 21:05:08 +02:00
net/phy generic: ar8216: fix unknown packet flooding for ar8229/ar8236 2020-05-06 09:06:17 +08:00
platform/mikrotik generic: platform/mikrotik: release mtd device after use 2021-05-12 11:42:31 +02:00