Qiyuan Zhang d6459091fd 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
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-12-31 17:44:10 +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