Bluetooth: msft: Fix error code in msft_cancel_address_filter_sync()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 3 Jul 2023 14:17:16 +0000 (17:17 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Aug 2023 18:44:12 +0000 (11:44 -0700)
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>
net/bluetooth/msft.c

index b80a2162a5c33ebacbe58ec8c500d0ae5b907264..abbafa6194ca1c32531addbde2a321e4527f920b 100644 (file)
@@ -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);