thunderbolt: Fix to check for kmemdup failure
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: NAditya Pakki <pakki001@umn.edu> Reviewed-by: NMukesh Ojha <mojha@codeaurora.org> Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Showing
想要评论请 注册 或 登录