[PATCH] drm: mali-dp: check the return value of kzalloc()

Xiaoke Wang xkernel.wang at foxmail.com
Thu Mar 24 07:52:02 UTC 2022


Thu, 24 Mar 2022 14:43:17 +0800, xkernel.wang at foxmail.com wrote:

> kzalloc() is a memory allocation function which can return NULL when
> some internal memory errors happen. So it is better to check it to
> prevent potential wrong memory access.

Withdraw this. The original code is also fine since there is a valid check
inside __drm_atomic_helper_connector_reset() but I missed to track it.


More information about the dri-devel mailing list