commit | 2cc12751cf464a722ff57b54d17d30c84553f9c0 | [log] [tgz] |
---|---|---|
author | Aditya Pakki <pakki001@umn.edu> | Wed Mar 20 10:57:54 2019 -0500 |
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | Fri Mar 22 13:23:31 2019 +0300 |
tree | 9a72d0caf356d9f6ebc7a32f57d752fd631e2699 | |
parent | e4dfdd5804cce1255f99c5dd033526a18135a616 [diff] |
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: Aditya Pakki <pakki001@umn.edu> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>