Re: [PATCH v2] thunderbolt: property: fix a missing check of kzalloc

2019-03-28 Thread Mika Westerberg
On Mon, Mar 25, 2019 at 03:23:08PM -0500, Kangjie Lu wrote: > No check is enforced for the return value of kzalloc, > which may lead to NULL-pointer dereference. > > The patch fixes this issue. > > Signed-off-by: Kangjie Lu > Reviewed-by: Mukesh Ojha Applied, thanks!

[PATCH v2] thunderbolt: property: fix a missing check of kzalloc

2019-03-25 Thread Kangjie Lu
No check is enforced for the return value of kzalloc, which may lead to NULL-pointer dereference. The patch fixes this issue. Signed-off-by: Kangjie Lu Reviewed-by: Mukesh Ojha --- V2: no overflow issue, as pointed out by Mika Westerberg --- drivers/thunderbolt/property.c | 7 ++- 1 file