Qiyuan Zhang 082608fd2b mtd: check the return value of malloc and pread
Check the return value of malloc and pread in case they fail.

Signed-off-by: Qiyuan Zhang <zhang.github@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/16070
(cherry picked from commit 3f014543cd4bd099dc089cbb9b9b2d7b0db8a021)
Signed-off-by: Rafal Boni <rafal.boni@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17889
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-02-16 13:03:23 +01:00
..
2021-03-15 16:57:34 +01:00
2021-03-17 08:42:05 +01:00
2016-10-27 01:50:42 +03:00
2016-05-09 18:53:11 +02:00
2024-05-12 12:49:39 +01:00
2018-02-13 11:16:49 +01:00
2016-10-27 01:50:42 +03:00