openwrt/target/linux/generic
Rafał Miłecki a1abf71827 kernel: fix bugs added with mac-address-ascii support
1. Check for -EPROBE_DEFER
If it occurs we have to return immediately. Trying other properties
could result in another error and ignoring -EPROBE_DEFER which has a
special meaning.

2. Check for read result
Assuming property->read() success can result in NULL pointer
dereference. It happens e.g. for "mac-address" with NVMEM cell
containing invalid MAC.

3. Simplify code
Don't move cell reading & nvmem_cell_put() into a loop. Simplify loop
code.

Fixes: ecd81de7a5 ("ath79: add nvmem cell mac-address-ascii support")
Cc: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2023-01-07 12:02:30 +01:00
..
backport-5.10 kernel: update nvmem subsystem to the latest upstream 2023-01-06 22:08:03 +01:00
backport-5.15 kernel: update nvmem subsystem to the latest upstream 2023-01-06 22:08:03 +01:00
files kernel: move ubnt ledbar driver to a separate package 2022-09-30 11:28:51 +02:00
hack-5.10 kernel: fix bugs added with mac-address-ascii support 2023-01-07 12:02:30 +01:00
hack-5.15 kernel: fix bugs added with mac-address-ascii support 2023-01-07 12:02:30 +01:00
image target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
other-files initramfs: switch to tmpfs to fix ujail 2020-11-27 01:23:43 +00:00
pending-5.10 kernel: add patch to support en25qh256a 2023-01-06 19:22:52 +01:00
pending-5.15 kernel: add patch to support en25qh256a 2023-01-06 19:22:52 +01:00
config-5.10 kernel: 5.10: update nvmem subsystem to the 5.15 state 2023-01-06 14:34:37 +01:00
config-5.15 kernel: Move CONFIG_PWM_IMG and CONFIG_PWM_MEDIATEK to generic configuration 2022-12-23 00:43:33 +01:00
config-filter kernel: filter out both Clang and LLD versions 2021-12-17 16:16:34 +01:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00