diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-07-03 16:17:16 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-08-11 20:44:12 +0200 |
commit | 528b2acf434bf4a0fb2969e5222fbe790b95f422 (patch) | |
tree | c3129b47a78e269d2c67b919729570f3e8948216 /net/bluetooth | |
parent | Bluetooth: ISO: Notify user space about failed bis connections (diff) | |
download | linux-528b2acf434bf4a0fb2969e5222fbe790b95f422.tar.xz linux-528b2acf434bf4a0fb2969e5222fbe790b95f422.zip |
Bluetooth: msft: Fix error code in msft_cancel_address_filter_sync()
Return negative -EIO instead of positive EIO.
Fixes: 926df8962f3f ("Bluetooth: msft: Extended monitor tracking by address filter")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/msft.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/msft.c b/net/bluetooth/msft.c index b80a2162a5c3..abbafa6194ca 100644 --- a/net/bluetooth/msft.c +++ b/net/bluetooth/msft.c @@ -743,7 +743,7 @@ static int msft_cancel_address_filter_sync(struct hci_dev *hdev, void *data) if (IS_ERR_OR_NULL(skb)) { bt_dev_err(hdev, "MSFT: Failed to cancel address (%pMR) filter", &address_filter->bdaddr); - err = EIO; + err = -EIO; goto done; } kfree_skb(skb); |