Re: [PATCH] thunderbolt: check the return value of kmemdup()

From: Mika Westerberg
Date: Wed Dec 15 2021 - 05:51:36 EST


Hi,

On Mon, Dec 13, 2021 at 04:27:15PM +0800, Xiaoke Wang wrote:
> Note: Compare with the last email, this one is using my full name.

This should go below the '---' line. Remember this next time, no need to
resend this one.

> kmemdup() return NULL when some internal memory errors happen, it is
> better to check the return value of it. Otherwise, some memory errors
> will not be catched in time and may further result in wrong memory
> access.
>
> Signed-off-by: Xiaoke Wang <xkernel.wang@xxxxxxxxxxx>

I sligthly modified the commit message and applied to
thunderbolt.git/next, thanks!