Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22287C433EF for ; Mon, 18 Apr 2022 11:34:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231803AbiDRLh0 (ORCPT ); Mon, 18 Apr 2022 07:37:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231890AbiDRLhZ (ORCPT ); Mon, 18 Apr 2022 07:37:25 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C64C1120BF for ; Mon, 18 Apr 2022 04:34:42 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 344BC3201F68; Mon, 18 Apr 2022 07:34:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 18 Apr 2022 07:34:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1650281679; x=1650368079; bh=tYWFaprF4d j9WQiGTzBde/5dbLt5xrp6SM9mEO9qZ9k=; b=FuWnN4kpkLtpi/hOuvZHjweyIt E9MukUe4dWo/euGUDYDVzOXddeYiG5GCd5XOazN8qYJVXj+E8w4unyYlwfhRCMI5 yIcQc2YPkUrXfXg39EAQj08nH9pmdaOymLCPH1FNa0/HuBzYSNE+5VUXawZUUFTW 8n3I41n628/qu/fTO5Wc9Doa+eiW8DtPyvd+02Rs1qTxj+bTv+qQF5RF0tggiPL/ +VQ/ayfa8+JnG5EdqdDEfAAQw9qR5GOlnQJvo6SHPYKe/ettNPa8m4UZL9VFnyrp e51ejO7K5s3KLQDnlEoFZW/5OtCj0EZuOp8y+JF3sJqXoBIlXSz9ZCYAfBsQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1650281679; x= 1650368079; bh=tYWFaprF4dj9WQiGTzBde/5dbLt5xrp6SM9mEO9qZ9k=; b=z kyS0Zb2UijqHkbIjZ+lrWsQzbNOgfzm2oovFtqdxz+7KpKi4YaKZAPkqgtwxh/N1 fAzPLISIgeAjLf/Y39nDU0BKYyYMmfzR3RP0LyrQRGPElDadiRza3UJ4nUJZ505L l2+zCAXhsgUoaSLlfaNXIqju71XHRJoYLNLedRAoAVjeiPp5FGPmELmb98df2DsD D+dQyBaPbh1a9lhCc88nWQkc7tITsa3jh/Oybv9VRLVdfRdLGOFWFBVxFVUni4cY cUkJrRAAC5xSGM2JZokbQnp6EOfzqus6LFFAEf4ZVxvh7FcXollHOyUENShbnv7Z crjwxl85gy0qztg4P0gYw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvddtuddggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeeuleeltd ehkeeltefhleduuddvhfffuedvffduveegheekgeeiffevheegfeetgfenucffohhmrghi nhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Apr 2022 07:34:38 -0400 (EDT) Date: Mon, 18 Apr 2022 13:34:36 +0200 From: Greg KH To: Dragos-Marian Panait Cc: stable@vger.kernel.org Subject: Re: [PATCH 4.19 1/1] can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path Message-ID: References: <20220418090332.2340160-1-dragos.panait@windriver.com> <20220418090332.2340160-2-dragos.panait@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220418090332.2340160-2-dragos.panait@windriver.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Mon, Apr 18, 2022 at 12:03:32PM +0300, Dragos-Marian Panait wrote: > From: Hangyu Hua > > commit 3d3925ff6433f98992685a9679613a2cc97f3ce2 upstream. > > There is no need to call dev_kfree_skb() when usb_submit_urb() fails > because can_put_echo_skb() deletes original skb and > can_free_echo_skb() deletes the cloned skb. > > Fixes: 0024d8ad1639 ("can: usb_8dev: Add support for USB2CAN interface from 8 devices") > Link: https://lore.kernel.org/all/20220311080614.45229-1-hbh25y@gmail.com > Cc: stable@vger.kernel.org > Signed-off-by: Hangyu Hua > Signed-off-by: Marc Kleine-Budde > [DP: adjusted params of can_free_echo_skb() for 4.19 stable] > Signed-off-by: Dragos-Marian Panait > --- > drivers/net/can/usb/usb_8dev.c | 30 ++++++++++++++---------------- > 1 file changed, 14 insertions(+), 16 deletions(-) You sent this twice, why? What is the difference between the two? Also, why not cc: the maintainers and developers involved? Please do so. thanks, greg k-h