Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dan Carpenter and committed by
Luiz Augusto von Dentz
528b2acf f777d882

+1 -1
+1 -1
net/bluetooth/msft.c
··· 743 743 if (IS_ERR_OR_NULL(skb)) { 744 744 bt_dev_err(hdev, "MSFT: Failed to cancel address (%pMR) filter", 745 745 &address_filter->bdaddr); 746 - err = EIO; 746 + err = -EIO; 747 747 goto done; 748 748 } 749 749 kfree_skb(skb);