Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2798349rwb; Sun, 15 Jan 2023 22:50:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXs83DK/OHpQHzO4jzZFPHf6Heqw9KAjTyRCE1jyw1e4W1wJNU4qkt9rp6UjV/qpqwWC0XJp X-Received: by 2002:a05:6a20:13a6:b0:af:9c75:6699 with SMTP id w38-20020a056a2013a600b000af9c756699mr141670406pzh.1.1673851837026; Sun, 15 Jan 2023 22:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673851837; cv=none; d=google.com; s=arc-20160816; b=AuZyOi1/4enALg45Zu76n/NYk7PJppQBEqLEpfgjsO9REreTzrL89CnJOErqEwJ9oF 0YDKw+B2odMCV77WQEaVR4C8JKqiy/lzA++jp2rPJXUiHMJk1opcR967EBZthxBBlwDv 3vOe1Z/3Q/A4Hq5et717Vt59WoEI6d2/2vFoYnIvOobp6+j+yHUkdGeKafklp8BP2q1x GhZLZvE2BRBStKq/8cYc9ReVzXXSxMhnKOjOK1iN9D9RNjVk26NYJyen+vYVTURb7oK8 ytkGzGoV09OU66Gm0jIJpKmaUZQoeeUcV4YUVN/C8dYYggVwCConUH8y9wA/6bFHX7oz Z6EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=UZZVOO1PlNfYh6pXJTOiGYstN2mHWmSplygwpwcHu3U=; b=XcF7V7AyJ5sLXc4Ed8MQwIsf3O+GbFAEfJXSKqQhRQlZMdaM6m/TfSBhnLgOmRvf2P AuNzNZ6dhrk46acJvnaSUKf0lRfux2OK2O1HVRBHgKNgU8kB5XsS+aefH0a12D5Mu30I hrRSwMAZm3Uz4C0XnQEdlEdMDn+d97a6bH5pPlTP2xcg+Bn3InstD+bqzT64eCulInCQ cxhD6zXH1ZOGKsCve3rYjo82KRgr6PfsohhR/eMxVBuy9mCU/lw+WcB7hrEPV+jwVc8h ZnzZQ4DzTf6w/Mw+AVI0XPK/899ExjW3MTzEFnRg7AKQcRvnAoBX8xTORdzbJIzhcFBZ LK3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QXEYzfqw; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 i12-20020a63e44c000000b004772bd28105si28457493pgk.831.2023.01.15.22.50.21; Sun, 15 Jan 2023 22:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=QXEYzfqw; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S232122AbjAPGds (ORCPT + 63 others); Mon, 16 Jan 2023 01:33:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231965AbjAPGdX (ORCPT ); Mon, 16 Jan 2023 01:33:23 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D0772A7; Sun, 15 Jan 2023 22:32:43 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 58B0560EBD; Mon, 16 Jan 2023 06:32:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDD38C433D2; Mon, 16 Jan 2023 06:32:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673850762; bh=maW64IMMxp+dx1Q+6stgYmvQzPBmd8+mugv2J37ShX4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=QXEYzfqwYdzycgSOn5gtw7EmKdyiHiCUSf6MbN/U3ZTeN6FPkRW6hGsI9U17NqwQ4 jIq+ReLCMCRRkeAGwOkBEq3X9/fJRBKu1WZ2k742SUWMB3k7YYcH45bcAOa4/Muqpd o4FdkRdbfYLszIKCnOvVmkHKYi7qu2ZRmEwP00X6fCvW7Xg//K4pwVBXHCAvLALGpR tKybOu9oxHxqF80poAe9YcB6qN5oh6yxzGIZzptphK0bUB+TJ3W3JVmnFoIdeH6yzJ DLlB5DMQbKW87toSuCoHodH4MV4eyUHseKkRVPYjz7+MyFL4Dtj0wGfAFwXbImqqnE hgayHBEKNYjhw== From: Kalle Valo To: Eric Dumazet Cc: Lizhe , davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, johannes.berg@intel.com, alexander@wetzel-home.de, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] wireless/at76c50x-usb.c : Use devm_kzalloc replaces kmalloc References: <20230113133503.58336-1-sensor1010@163.com> Date: Mon, 16 Jan 2023 08:32:37 +0200 In-Reply-To: (Eric Dumazet's message of "Fri, 13 Jan 2023 14:44:58 +0100") Message-ID: <87358bat16.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-wireless@vger.kernel.org Eric Dumazet writes: > On Fri, Jan 13, 2023 at 2:35 PM Lizhe wrote: >> >> use devm_kzalloc replaces kamlloc >> >> Signed-off-by: Lizhe >> --- >> drivers/net/wireless/atmel/at76c50x-usb.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/drivers/net/wireless/atmel/at76c50x-usb.c b/drivers/net/wireless/atmel/at76c50x-usb.c >> index 009bca34ece3..ebd8ef525557 100644 >> --- a/drivers/net/wireless/atmel/at76c50x-usb.c >> +++ b/drivers/net/wireless/atmel/at76c50x-usb.c >> @@ -2444,7 +2444,7 @@ static int at76_probe(struct usb_interface *interface, >> >> udev = usb_get_dev(interface_to_usbdev(interface)); >> >> - fwv = kmalloc(sizeof(*fwv), GFP_KERNEL); >> + fwv = devm_kzalloc(sizeof(*fwv), GFP_KERNEL); > > Have you compiled this patch ? Clearly not: https://lore.kernel.org/linux-wireless/202301140533.jMlST9Ur-lkp@intel.com/ Lizhe, do not EVER submit untested patches. In some simple patches doing just a compilation test might suffice, but please mention the patch is only compile tested clearly in the commit log. But not even doing a compilation test is a big no. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches