diff options
author | 2018-12-30 12:17:52 +0200 | |
---|---|---|
committer | 2019-04-18 11:18:53 +0300 | |
commit | 444ac3844895c34ab71ffcec1b3199449d3434a4 (patch) | |
tree | 740d894bc76d652b3b763457dfbd28be9d2cc63a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | thunderbolt: Add support for DMA tunnels (diff) | |
download | linux-dev-444ac3844895c34ab71ffcec1b3199449d3434a4.tar.xz linux-dev-444ac3844895c34ab71ffcec1b3199449d3434a4.zip |
thunderbolt: Make tb_switch_alloc() return ERR_PTR()
In order to detect possible connections to other domains we need to be
able to find out why tb_switch_alloc() fails so make it return ERR_PTR()
instead. This allows the caller to differentiate between errors such as
-ENOMEM which comes from the kernel and for instance -EIO which comes
from the hardware when trying to access the possible switch.
Convert all the current call sites to handle this properly.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions