mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
thunderbolt: Do not overwrite error code when domain adding fails
If the Thunderbolt domain adding fails for some reason we currently always return -EIO instead of the real error code. To make debugging easier return the actual error code instead. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
This commit is contained in:
parent
79fae98751
commit
68a7a2ace1
@ -1036,7 +1036,7 @@ static int nhi_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
*/
|
||||
tb_domain_put(tb);
|
||||
nhi_shutdown(nhi);
|
||||
return -EIO;
|
||||
return res;
|
||||
}
|
||||
pci_set_drvdata(pdev, tb);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user