]> Git Repo - u-boot.git/commit
reset: mediatek: check malloc return valaue before use
authorWeijie Gao <[email protected]>
Wed, 19 Jul 2023 09:16:11 +0000 (17:16 +0800)
committerTom Rini <[email protected]>
Thu, 3 Aug 2023 13:40:49 +0000 (09:40 -0400)
commit6f1cc261b9f5f47175020750d45b55bb0b30b601
treed70865cf728ab52e820a73299b1160082d2f9162
parent0fd96bf224c1af7f8fc3bbdc814eba0349d0c334
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 <[email protected]>
Signed-off-by: Weijie Gao <[email protected]>
drivers/reset/reset-mediatek.c
This page took 0.032214 seconds and 4 git commands to generate.