From: Dan Carpenter Date: Mon, 3 Jul 2023 14:17:16 +0000 (+0300) Subject: Bluetooth: msft: Fix error code in msft_cancel_address_filter_sync() X-Git-Tag: v6.6.17~4098^2~129^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=528b2acf434bf4a0fb2969e5222fbe790b95f422;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Simon Horman Signed-off-by: Luiz Augusto von Dentz --- diff --git a/net/bluetooth/msft.c b/net/bluetooth/msft.c index b80a216..abbafa6 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);