mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
a1abf71827
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:
|
||
---|---|---|
.. | ||
backport-5.10 | ||
backport-5.15 | ||
files | ||
hack-5.10 | ||
hack-5.15 | ||
image | ||
other-files | ||
pending-5.10 | ||
pending-5.15 | ||
config-5.10 | ||
config-5.15 | ||
config-filter | ||
PATCHES |