]> asedeno.scripts.mit.edu Git - linux.git/commit
thunderbolt: xdomain: Fix to check return value of kmemdup
authorAditya Pakki <pakki001@umn.edu>
Wed, 20 Mar 2019 16:47:20 +0000 (11:47 -0500)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 22 Mar 2019 10:27:44 +0000 (13:27 +0300)
commit48f40b96de2c790eac6114e3e879a48fe9f89349
tree9bee318598daaab1af8e2c7c5d9bde61fa75328e
parent9aabb68568b473bf2f0b179d053b403961e42e4d
thunderbolt: xdomain: Fix to check return value of kmemdup

kmemdup can fail and return a NULL pointer. The patch modifies the
signature of tb_xdp_schedule_request and passes the failure error upstream.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/xdomain.c