Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5339465rwd; Tue, 23 May 2023 23:40:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Jagdmwln3ye35RWiE9PTfOMQ9N+JLV7XAJIuAhlDg/LtoeHUW905pDtniNeGmodI+0Fke X-Received: by 2002:a05:6a20:938e:b0:10b:7243:c212 with SMTP id x14-20020a056a20938e00b0010b7243c212mr11864746pzh.42.1684910455033; Tue, 23 May 2023 23:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684910455; cv=none; d=google.com; s=arc-20160816; b=LRQLsQPE6PjzRsE4GkeYj2UnKlxVuoeiIS/jEzlO1UIOlyGMTHFn3ML2GamqBfVTZV ArICxrYVhWsedd02YrRNZp9nE3Ym2ql/saqhGZyAV2osDMjAsMi074k0YM0n+oJ0k5GE n4YAGpzUyqmjQNdJtUpnsH67k3Zh0unheYK28b/cIAeW/fvSZOXC2dlHYt6XUJXjP76o FUroV8NQGZOKC/p8pQgrZjdy2T9ZHAqJNFVl0qZiRQIHI+97byp9DPbUqTWr7yHC3DAZ tvGFjYeU+hiiPTVmevztqQzBc4x2WyLkyRCHPG/T+0Fyej3rEUaWVnCdMZCMOkkIuFn/ 7O5Q== 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=gjGg8aP9lSrFbHZtI1+yssCGmLexd80eMenQGevKTbk=; b=M6ixQZj080/oed1PjBORryHEBK6sDFjynPJayM2VgSUujUke1lqC8YpmoeFMAAyqLK Ydy9tyzkQpzabq8ODzDi5hLtWJCJkSA+00AGQYUva7SDCK7n5lVzOude1r4C4G2QS3lI 1uG0mRHBi8m1iFpb1jZwWha0imH6AGurTtrYqdNNfXiSYSaOcVMOzJLBfwB1jSClGB+X 5MLfs5wPCgwJMf4z8L5i8xUc1T0ZwGQSXOYY+dQlDTJef+nkYl2Z2Zuy7ByfWaJAiHGY 6VIUejA1zIRLPpWjOtUl/2l2Z2gxjCZxXIfQ0fhXcATwgyVoVryy3t0GwS7EfjWhIyT6 d25w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ud/SODPw"; 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 b137-20020a63348f000000b00513162c223csi3615257pga.470.2023.05.23.23.40.31; Tue, 23 May 2023 23:40:54 -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="ud/SODPw"; 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 S239636AbjEXGiw (ORCPT + 99 others); Wed, 24 May 2023 02:38:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239743AbjEXGil (ORCPT ); Wed, 24 May 2023 02:38:41 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB74C189 for ; Tue, 23 May 2023 23:38:39 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3093a7b71fbso344286f8f.2 for ; Tue, 23 May 2023 23:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684910318; x=1687502318; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=gjGg8aP9lSrFbHZtI1+yssCGmLexd80eMenQGevKTbk=; b=ud/SODPw7xjzhluzm88/yW67P7cMWJulS+ct5eFHjM1NJEgPuVRFHPRMFlXpgXiuVC cgd8RlpTFkrxhTfDJSQDMWfA2cmxDfe2abeMkMeV7TsqaJl6ddTQXxNCclRV3sDQmiuS Ed0fViISv0VeKAsZTlqK0gu+u/S0ztqMem6h52snWUp9hUa4V5lFB6EldL0pw+dbVwPO 3eJxDpsbfbk9B7q6AtlvoorMbU1ZSOc/SzDa5G5faurChSFv2snhsh8tM45rtgTQofH1 VGQ6bVV3Aa9jHfNWCVtDjYAGYWQyFzPv6res0d4U7MgB8HPMdV5em46Q4YJ3q5L8YCAu OfQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684910318; x=1687502318; 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=gjGg8aP9lSrFbHZtI1+yssCGmLexd80eMenQGevKTbk=; b=Q09HKHhsmrssiHGY46yMHaC8bScDKN0BNM5teZphJPt/tFSBA0pr96js6yfpVPIyyH TbXgiglHjhSQR4hDoeAUlA+C7m0IjMhtdWSokDXueEHNysc97GoohLnAcapUFoGbOH9T Y3H3o+fkY+AaDBvarDuoeqSIxf4e3MAX8KffuZYr0RXLVJ6bvyNhA55Z5GQqjW0TqbeL QRmKQc7RqlrFPby5vVOIKsLXGBZltyVL1+FPQ775ICtP0dYHEL6+yd93lX2jBaHzGqW/ B94TONXnSyZhhu4LG7uATnLi/pqlIdWlocjVnQirCYmR4PlZjVSjJip1ptPLB1spTfOB 3Gvg== X-Gm-Message-State: AC+VfDxQeyMybc/wi4nEQA+CM9vZGOZCI+p1AztWKDfR4fceqT0f44r/ SwOPQ5fvvDwTBsI5N8hSBpIfq/UXKwOLNV3rfSQ= X-Received: by 2002:a5d:51c8:0:b0:309:3449:2886 with SMTP id n8-20020a5d51c8000000b0030934492886mr11356562wrv.39.1684910318263; Tue, 23 May 2023 23:38:38 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id p17-20020a5d4e11000000b003063772a55bsm13272656wrt.61.2023.05.23.23.38.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 23:38:37 -0700 (PDT) Date: Wed, 24 May 2023 09:38:34 +0300 From: Dan Carpenter To: luiz.von.dentz@intel.com Cc: linux-bluetooth@vger.kernel.org Subject: [bug report] Bluetooth: Add initial implementation of BIS connections Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Hello Luiz Augusto von Dentz, The patch eca0ae4aea66: "Bluetooth: Add initial implementation of BIS connections" from Mar 9, 2022, leads to the following Smatch static checker warning: net/bluetooth/hci_conn.c:943 hci_le_remove_cig() warn: passing zero to 'ERR_PTR' net/bluetooth/hci_conn.c 939 static int hci_le_remove_cig(struct hci_dev *hdev, u8 handle) ^^^^^^^^^^ 940 { 941 bt_dev_dbg(hdev, "handle 0x%2.2x", handle); 942 --> 943 return hci_cmd_sync_queue(hdev, remove_cig_sync, ERR_PTR(handle), NULL); ^^^^^^ handle is a u8. It can hold error codes. 944 } regards, dan carpenter