diff mbox series

Bluetooth: msft: Fix error code in msft_cancel_address_filter_sync()

Message ID be155fef-7758-41b2-a6e8-8f7e253ff452@moroto.mountain
State Accepted
Commit 375f2744ab84b6ffec5d13febda774eed3a98801
Headers show
Series Bluetooth: msft: Fix error code in msft_cancel_address_filter_sync() | expand

Commit Message

Dan Carpenter July 3, 2023, 2:17 p.m. UTC
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>
---
 net/bluetooth/msft.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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);