Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2911533pxu; Sun, 29 Nov 2020 08:44:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwe5ueemoB3OHVEV5h6IJ6HWeNM8vcPi8olpIs3r0tv0nwbbF3dq4IriNP3AAMzZIPjb28y X-Received: by 2002:a50:8004:: with SMTP id 4mr15438258eda.329.1606668282061; Sun, 29 Nov 2020 08:44:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606668282; cv=none; d=google.com; s=arc-20160816; b=JiQN08tcIVF38Ia6ogMImDQ2tw9PhoR2V2xe3klpzGQhcGU0A7djeFzhHwjeYM/Bnu DRQMxGMvQEoHrV3tyUS2ZX10chmvslofHwe4nYHDwdBNNWfWFoGeE5wPz+jcBraDy9rL 7LHuYI2czTeSrFkjYSY/n3xtibYd22s488Hr5qh7nVjjvEVvuh3Qdv2jg7SeZGCZaITy sLZjz3djFYn+TedVCH1G8UojemsG1nZ8hv7mqdBv3yyIUofA+9cKTySxrTbW4ygUz/Nc 8ggf+I6AGTD7OwuFXLyUg4lH58lnguCTZzX0IQeeCFDczTirXgOxbHuMUq88oQrlyOlY S1VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=zHdDK+dmWn8gCx5N2jMxoQKX0RRPwzh45mj3hu0wPTI=; b=cKNx92QuQlSnoWoQB1DAGdhBeb9MUvr8tm8+PUCwE/UrErPBHLs9r11MjWfHZ02c6v KjZAtCRPv4bjjhSlKz3PHNgi0tK3tViGFCPnSwD15///Cf1mmyCcKIISKO8PkimfVjZ5 WP9bjtP7b8CkgRyE0QQpq6lIuGJkr8gmMcvwrmdVoIS0eUYT9wh7JbrojMsepFmHj4S5 OipauYzOUc5T7Ru1u7TwUFCE/kj99ACD/WNRvfSPrD3/TkyfrUnh46Ehx8o4gibYmR87 ZRoEDVPbyoWwF177qJMcO/GC572luzW8s+Uc6hg/yT9wwALK5h/7YyCqDUqr1WdobhUy QJCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k8LJ3ofx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si10261186edb.173.2020.11.29.08.44.19; Sun, 29 Nov 2020 08:44:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k8LJ3ofx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727892AbgK2QjQ (ORCPT + 99 others); Sun, 29 Nov 2020 11:39:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgK2QjO (ORCPT ); Sun, 29 Nov 2020 11:39:14 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28617C0613CF; Sun, 29 Nov 2020 08:38:34 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id 131so8746558pfb.9; Sun, 29 Nov 2020 08:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=zHdDK+dmWn8gCx5N2jMxoQKX0RRPwzh45mj3hu0wPTI=; b=k8LJ3ofxbaEDXqtJqsn+MQmQ1WyUzQ8KBZqjnmOy4m8kugY0plvzl1PFPOHA8gtjdc Mo4EscHW48LGZHZhZSkKo4w3A2rCL5lf7/ZJgGrr/WcenDfctf+sguY1z+Xa0AJAT/HD CLtJfy8tG/b6sgbs3eYDxb/djbojTSoPG8gWGYYBcdfpSAsffG78LMIjKInE3lUtW1jJ GyChVnDgh+Jwfc2KVa19u9spWVo9yldmaynpbcCXPSIP9OZTgpdFhqDBNYbDzGTydOEE hlnxXhd4m38KFkClAgQMxIyf/ax52MZbIBkVTpXSF4GeRBB+EJZzuqTpFlraNaMpD/Q6 vGCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=zHdDK+dmWn8gCx5N2jMxoQKX0RRPwzh45mj3hu0wPTI=; b=nUdrhAcxJXJxfMcoGwFvMEpbJu559rITKj+dXajjwveLCaysx7yNxUtnMrNuGxVPJY hkjUw1leIfUjtPnAD4fj2FyFS+fOo9qV5PQ3jrpPtWpS74miKYGcimGoCLyC0f3PTRcc Mi5n++uhzSYHnc1IRPQX5VxihK5A1fiyjYyDWJDc/ze9gq12XFY35eOzuxgNQkJIQ3nA 0LWJeO86UAo3fOBSlIhPV10OVbFkAK0E6ieILxjE5R4H4hUqFc6gin0vhidO+KPhCX8a Tih45uWrhPjW/JxKCNyGP2IHRqONhaTg+ig9172rpAI3R7/pRbM3CraPVcYD0z9dRcFh HyGA== X-Gm-Message-State: AOAM531zJW3KfEiBjnyt1VDw5WHKuR8/pUkbykBefAWBrmG0e3CCVgod mm5UwC816TtQb1AzbACeKq8vGug922kF3fLuW5E= X-Received: by 2002:a17:90a:f288:: with SMTP id fs8mr18371210pjb.184.1606667912972; Sun, 29 Nov 2020 08:38:32 -0800 (PST) Received: from [192.168.0.104] ([49.207.196.188]) by smtp.gmail.com with ESMTPSA id e8sm13876144pfj.157.2020.11.29.08.38.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Nov 2020 08:38:32 -0800 (PST) Subject: Re: [PATCH 03/15] usb: misc: cytherm: update to use usb_control_msg_recv() To: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201129160612.1908074-1-anant.thazhemadam@gmail.com> <20201129160612.1908074-4-anant.thazhemadam@gmail.com> From: Anant Thazhemadam Message-ID: Date: Sun, 29 Nov 2020 22:08:29 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/11/20 9:46 pm, Greg Kroah-Hartman wrote: > There's no more need to dynamically allocate the buffer variable here > now, right? It can be on the stack as the change you made above allows > that to work properly, no need to allocate the buffer twice in a row > (once here and once in the USB core). > > That would make these functions less complex, always a good thing. > > You should check this on the other patches in this series as well. Understood, I will do that. I apologize for the oversight. Thanks, Anant