aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorMika Westerberg <[email protected]>2018-12-30 12:17:52 +0200
committerMika Westerberg <[email protected]>2019-04-18 11:18:53 +0300
commit444ac3844895c34ab71ffcec1b3199449d3434a4 (patch)
tree740d894bc76d652b3b763457dfbd28be9d2cc63a /scripts/gcc-plugins/sancov_plugin.c
parent44242d6c9703208e7e7abd6b4dbb258a930dd01a (diff)
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 <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions