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

2019-03-22 Thread Mika Westerberg
On Wed, Mar 20, 2019 at 10:57:54AM -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!

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

2019-03-20 Thread Mukesh Ojha
On 3/20/2019 9:27 PM, 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 --- v1: Missed check on tb_sw_read, suggested by Mukesh ---

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

2019-03-20 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 --- v1: Missed check on tb_sw_read, suggested by Mukesh --- drivers/thunderbolt/switch.c | 22