Re: [PATCH] thunderbolt: Fix to check for kmemdup failure

2019-03-20 Thread Mukesh Ojha
On 3/19/2019 4:14 AM, Aditya Pakki wrote: Memory allocated via kmemdup might fail and return a NULL pointer. This patch adds a check on the return value of kmemdup and passes the error upstream. Signed-off-by: Aditya Pakki --- drivers/thunderbolt/switch.c | 15 +++ 1 file

Re: [PATCH] thunderbolt: Fix to check for kmemdup failure

2019-03-20 Thread Mika Westerberg
On Mon, Mar 18, 2019 at 05:44:17PM -0500, Aditya Pakki wrote: > Memory allocated via kmemdup might fail and return a NULL pointer. > This patch adds a check on the return value of kmemdup and passes the > error upstream. > > Signed-off-by: Aditya Pakki Applied, thanks!

[PATCH] thunderbolt: Fix to check for kmemdup failure

2019-03-18 Thread Aditya Pakki
Memory allocated via kmemdup might fail and return a NULL pointer. This patch adds a check on the return value of kmemdup and passes the error upstream. Signed-off-by: Aditya Pakki --- drivers/thunderbolt/switch.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff