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

2019-03-15 Thread Mika Westerberg
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 Applied, thanks!

[PATCH] thunderbolt: fix a missing check of kmemdup

2019-03-14 Thread Kangjie Lu
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 --- drivers/thunderbolt/property.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/thunderbolt/property.c