Re: [PATCH] thunderbolt: Fix to check the return value of kmemdup

2019-03-21 Thread Mika Westerberg
On Tue, Mar 19, 2019 at 01:38:34PM -0500, Aditya Pakki wrote: > uuid in add_switch is allocted via kmemdup which can fail. The patch > logs the error in such a scenario. > > Signed-off-by: Aditya Pakki > --- > drivers/thunderbolt/icm.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

[PATCH] thunderbolt: Fix to check the return value of kmemdup

2019-03-19 Thread Aditya Pakki
uuid in add_switch is allocted via kmemdup which can fail. The patch logs the error in such a scenario. Signed-off-by: Aditya Pakki --- drivers/thunderbolt/icm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thunderbolt/icm.c b/drivers/thunderbolt/icm.c index