Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16691620rwd; Mon, 26 Jun 2023 13:46:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5PYvVj1vjTNe5210LLZzhEc503kMuLconkG/6UVHPE5nUlGJtS6mtfErWbXj2ahYT5acSF X-Received: by 2002:a17:90a:d511:b0:263:949:7ab9 with SMTP id t17-20020a17090ad51100b0026309497ab9mr1162395pju.24.1687812380595; Mon, 26 Jun 2023 13:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687812380; cv=none; d=google.com; s=arc-20160816; b=mgIZ7cvYPPuTVe1ylMf0/SDwU9UuYgRjAIRgKm4MbLr/juo3WftoSkxv8vVbIdW/v6 RbbYknoqLrlCtxlIGsVG7pSeG07P7LMntzTk4a/2TUoF3NhScuk2ZATDiFUPmSrrQ1cv UbmwsMW4uPAJVgzXs0hmrGMIfVmbXqzVYXvh9rYT2Cs9vf2LhXxXIa/i0jZd3lIhuJ7s 2wuS4DMt0zGCayoeMI5m67xJwCNtbgHwcieMn2PKIty6dza/C/2/m2GufE9ujrQVCTg9 nAnCKkfuIjWZeZIYrUqGyHIBlBFw7wK7p1iU0c9WBD+pNJc2RsD3Kv5KvYEzWmDEd7yk RlXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=Aedv8R1pDTYT/FSCIDTL8OWxtTp+VUF0K0NjYhFgKn8=; fh=y0TDtfk8oTBKpMLnnet1GJsR1XVHGGhfzBzbIkJOp/s=; b=lSkmGQqjmCS4S6GvaRY0m7VxgRTbbnzzuptBzRYQXqmt2vtYRsRoSuzFWbMmKmlBD1 052LhMzTM56aL1zWih9VR+EeYxtn9OlqKPK+KpU/r9xfT0USgTAG6S9TzwqRg51lULtN reaP1LVUfK+v41WwSdGoQSPU/JpzppKv3DypDm2ikNLgHIPgRJPxntiBTq4OD1sodVDI EOVUu+UkPs2gIos+Woz+MFsspWgO5GmaRjCrXO0THZnWKnECIluTnv7tbj5bjOyJr62J XvdT8zcc5fRvaRkgGgCEg5/qaLmGgQntc8LKQSMeAHE0k5fRwp+C28XADz4g7uqu9YGH DcVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kn0aopct; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt21-20020a17090af01500b00247304b4a27si5869876pjb.173.2023.06.26.13.46.08; Mon, 26 Jun 2023 13:46:20 -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=@kernel.org header.s=k20201202 header.b=kn0aopct; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbjFZUmg (ORCPT + 99 others); Mon, 26 Jun 2023 16:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjFZUmb (ORCPT ); Mon, 26 Jun 2023 16:42:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B512412C; Mon, 26 Jun 2023 13:42:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0DF4560F59; Mon, 26 Jun 2023 20:42:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 74434C433C8; Mon, 26 Jun 2023 20:42:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687812134; bh=gOj1k9JojrNwRP9mT37pNzDg/rLxVjtZQAF51Mcy+ew=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=kn0aopctOVfmLUS9K0QnhWSG70BVPy1jSGhOy24BBgYtctIho+//6ZpNbZJ32NrIp BdrBuF6qQckboalLHd1ZqruaYaMQTE9fUKoLJQk5E62wTNA/O/z0TycdbC7jwhVegh z3IVe0Wk4e5weRLv12TpAtDn6OJ8CKx1HkpRIyLlOcni3MxZEanL916yc+R0/l5Zmv Gaim8qQFNVQiRAL+8YrgV3xdFA+fkGfe91/KtenF/jxYIKr96KcusTJ3739jToydhG FKbHcCYvBxkfvbYhQvJDzBXkOWf+6aX/dmSpXd4OehrABm5kSDtpcixtNsnZ7SAhJg BSeJ68E92KRTg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 530F4C395E0; Mon, 26 Jun 2023 20:42:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] Bluetooth: hci_conn: Use kmemdup() to replace kzalloc + memcpy From: patchwork-bot+bluetooth@kernel.org Message-Id: <168781213432.29844.16837505476926129837.git-patchwork-notify@kernel.org> Date: Mon, 26 Jun 2023 20:42:14 +0000 References: <20230625084513.6319-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20230625084513.6319-1-jiapeng.chong@linux.alibaba.com> To: Jiapeng Chong Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, abaci@linux.alibaba.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Sun, 25 Jun 2023 16:45:13 +0800 you wrote: > Use kmemdup rather than duplicating its implementation. > > ./net/bluetooth/hci_conn.c:1880:7-14: WARNING opportunity for kmemdup. > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5597 > Signed-off-by: Jiapeng Chong > > [...] Here is the summary with links: - Bluetooth: hci_conn: Use kmemdup() to replace kzalloc + memcpy https://git.kernel.org/bluetooth/bluetooth-next/c/f1a9a7cc825f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html