Re: [PATCH] thunderbolt: fix a missing check of kmemdup

From: Mika Westerberg
Date: Fri Mar 15 2019 - 05:12:08 EST


On Thu, Mar 14, 2019 at 01:55:31AM -0500, Kangjie Lu wrote:
> kmemdup may fail and return NULL. The fix adds a check and returns
> NULL in case it fails to avoid NULL pointer dereferecen.
>
> Signed-off-by: Kangjie Lu <kjlu@xxxxxxx>

Applied, thanks!