Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp26256322rwd; Mon, 3 Jul 2023 07:23:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlG5X3yu2e3oZiFVQQl3EuV1sAtQUk/Rws1wFJ4qtrZXklZGd0yg7yVE39oT85X9aG1fX8TM X-Received: by 2002:a17:90a:fa18:b0:262:ba7f:30cd with SMTP id cm24-20020a17090afa1800b00262ba7f30cdmr6510750pjb.31.1688394217306; Mon, 03 Jul 2023 07:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688394217; cv=none; d=google.com; s=arc-20160816; b=IZ6B2YFp7VhkjUguk4O920NjHlMz/cqh/Hhu7TCWQRNV7TjfQWv7PU6fPII9qsiqIg kJ1bKA2NdvSawaqIl7fExw3TK0K3uIwt3MxcDoUX2LHBOVREei201a1T83i8fNn8/QtW rA0EQMhm2IdlyWtTHHvrnNqm+g6wH900+xv4kkVxEXRUlKo/qIyLdjjjhTJ3GKNzK0A4 cri2Q82/PMffotMTEEcO8OZbnKsC6ulEmOGwV78Zh5XqyiotkDbZSBihXPbi0DpaWw8/ BaRA6IkTvXQd+VwV6WQfPgzuELwxIDyfMWwXgXt3haorGrCQ9c7jXpT2gTjtuim4zxG/ hG3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=AKyS+fyTgns6uqGiHeNZDD4/FshXCuvqba4EjpsGTtY=; fh=cPmlsW6Ej89lxz+subCAwu3lj0YQgKO7gICuazwJZP0=; b=Du4zYON2DQGVvZdaADLYtswa/nj3SvKf0vYFUkJujl2jgmJSJ4/RrYBNJEjRGR117U HHHY7g/BG9F0yAu9n4Z4iUlNqNjhHzUIslcCHeRSe6UISVenE6maYxH9kHRuX89WWp8u UDGi9s4F6U9VVZgKkLQ94iCwGuQ9JY6Fm6LemgJvbfdHNzXtYTI9czaGGGZW+1EBiGcW 3H/HYWZfyUiLp5UIdD8EvZN2OYBD3TNvCpW0s73/gNYr5mdx9bHzLDBENOSr9ndTP8JZ zsgDU1xyp7fG81twjJIs6XkKEa+wBbQNw2seNqvUaVEj+9XM/bwi1gGI/g7igQGqOYIl bJkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x14za32i; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pl11-20020a17090b268b00b002635643286fsi9087255pjb.133.2023.07.03.07.23.15; Mon, 03 Jul 2023 07:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x14za32i; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbjGCORZ (ORCPT + 99 others); Mon, 3 Jul 2023 10:17:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbjGCORY (ORCPT ); Mon, 3 Jul 2023 10:17:24 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDC68E72 for ; Mon, 3 Jul 2023 07:17:22 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fbc244d386so47680455e9.2 for ; Mon, 03 Jul 2023 07:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688393841; x=1690985841; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=AKyS+fyTgns6uqGiHeNZDD4/FshXCuvqba4EjpsGTtY=; b=x14za32iAGSU72hi1D5KXDHjfL8SqI9J+qV8qY9mu6PkcaT9mH4lovneS7Fwmoil8f sFHaGAMR2uc7y/Vu8C3b8kPtEyj+YkOVL0VK6zsu/QB/+WdYzjrrLsMh1iu98Z9FvDTX 0tk7x6sslXBLnOXVVqRwYsLvUGBDUWIdG6Ai3+hct6z0o0+iJJtcVpJmijqqnBr1l7/W aL6oUjyhmItLkLQV5js7msI37l5W+QphaFOIKUO9UELCX6nmnBk2+7vi26Q/TySDB1Y1 z8K6Br0jvHut3iF+7uUiPuXzstgG585vGssQ5g852ME+ko//oki/52iiYKukWcX9m8va iHxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688393841; x=1690985841; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AKyS+fyTgns6uqGiHeNZDD4/FshXCuvqba4EjpsGTtY=; b=Z3cd58ElrLRDetow5fPrzxWEpRBBIib+9OBrFddF0dLmWGbRL/GG7ihhMzY2a58TaJ cUh5nB0bEsCAFOwQ+No6xYKrK3yTSAOUYvXT6fqRc245IubKvfQ4wc6YEETsh5P6cEWP gG6EoVAGjlpIAneJK4+oRpuSrruNPEwCUUkWx5jzSkPn3i3UfOjI3JKNMs+GnWeZ98LK /unlWfnHVHA9tx3VunTtbDCL2dfvLc/yTRvZQ4hqf6WDIat0bqI1FOqNYKIEONb3DUPa Jq5hnys9CuS9Md7R7GAjZNdPdIpaWvfFTdymRqVjcsPsm0AVdsKepN0T1qSuDe5cNAYS XbGg== X-Gm-Message-State: AC+VfDy91FdW5hXG7wBZ9aMUl4egqdWD8ydHLsRtLKEpc47jHwGUZesn NBlhIUlUEwy56qQUXerSthesWA== X-Received: by 2002:a1c:7219:0:b0:3fa:d160:fc6d with SMTP id n25-20020a1c7219000000b003fad160fc6dmr8313002wmc.30.1688393841164; Mon, 03 Jul 2023 07:17:21 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id f12-20020a7bc8cc000000b003fbbe41fd78sm11807753wml.10.2023.07.03.07.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 07:17:19 -0700 (PDT) Date: Mon, 3 Jul 2023 17:17:16 +0300 From: Dan Carpenter To: Hilda Wu Cc: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Alex Lu , Simon Horman , linux-bluetooth@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] Bluetooth: msft: Fix error code in msft_cancel_address_filter_sync() Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Return negative -EIO instead of positive EIO. Fixes: 926df8962f3f ("Bluetooth: msft: Extended monitor tracking by address filter") Signed-off-by: Dan Carpenter --- net/bluetooth/msft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2