commit | 6f1cc261b9f5f47175020750d45b55bb0b30b601 | [log] [tgz] |
---|---|---|
author | Weijie Gao <weijie.gao@mediatek.com> | Wed Jul 19 17:16:11 2023 +0800 |
committer | Tom Rini <trini@konsulko.com> | Thu Aug 03 09:40:49 2023 -0400 |
tree | d70865cf728ab52e820a73299b1160082d2f9162 | |
parent | 0fd96bf224c1af7f8fc3bbdc814eba0349d0c334 [diff] |
reset: mediatek: check malloc return valaue before use This patch add missing return value check for allocating the driver's private data. -ENOMEM will be returned if malloc() fails. Signed-off-by: Sam Shih <sam.shih@mediatek.com> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>