Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4208600pxf; Tue, 23 Mar 2021 05:39:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7kZHXcUFuN3d5R9RegitYPO3q6WAacIBKH1yw2PIs1aemog///qAL+v6POKgk2ci3Qeyc X-Received: by 2002:a17:906:c9d8:: with SMTP id hk24mr4822457ejb.480.1616503188326; Tue, 23 Mar 2021 05:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616503188; cv=none; d=google.com; s=arc-20160816; b=FHp0PTd7pD5i9l2w7ed2U5uiJsGj4vsZOEvQYv9Ll9+yK4RCFl3G3A0vzqpJzCZ1Ah KULnmZivYZawSQzWRK9VGtsNMhecclWm+tCEPCxUUzsaCV5CoV7iHhZ6RG/gTyoxrKV0 3hBZW/K5Oi95KzuJQg4sg+LZ6kWrjWa/9DcfAPwshZmhwcgcKD9WCKvWiaXc88UrCGQI fARWK0eJjgZbxvH7tnrr9fD1TKaDJNyUGIdUHpBOTud7m9+OtzWQvu3zDpHWURcCi8pQ e0H3XM8feYP+QUKjk2dlydTIlBCL7Igrys4uQJExs3zxP89zIxLOrmMypdPzobqBt9xA UOpA== 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=CYO3jLLdqXeezxgml/hOLnYiONhTc329cwaZR8YnfiQ=; b=CMTUio9SZx95LowcjbUCHFa4GSlatprsgjMvOCcHhgz4EfA420HERX8LAlFkQOK3KX A/yDfZxdPV05YESotfsevGrGSagJhHP8F29e791OkYVXe5Y6oRGP/sVwuW7NFulOP7Qn mSVnRaW6CmbyAWup79usasce57FL8M1zgXOkJfsIRM+WU3hg27hCeRRLs7AIOuJ1JtQf SdGPBcIH3waKex/0OWm9mg57ccrwig0wPHRvqjzG0kWPycOX36vrUHOEhwUgllalxNPI yQ+tnL1Xf7A5RKg6fJa4pxhUFaU+PKSibHEkaqllIS+sUXtOY5HXp3Du6/uMRN3hUroc Uxew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k7Jr9GIL; 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 r18si13133200eds.390.2021.03.23.05.39.23; Tue, 23 Mar 2021 05:39:48 -0700 (PDT) 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=k7Jr9GIL; 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 S231137AbhCWMi1 (ORCPT + 99 others); Tue, 23 Mar 2021 08:38:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbhCWMiL (ORCPT ); Tue, 23 Mar 2021 08:38:11 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF258C061574; Tue, 23 Mar 2021 05:38:09 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id q5so14177806pfh.10; Tue, 23 Mar 2021 05:38:09 -0700 (PDT) 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=CYO3jLLdqXeezxgml/hOLnYiONhTc329cwaZR8YnfiQ=; b=k7Jr9GILdZSElGIi5VbITBzMKBzdNw7s2UrGa+8ukYKELiDWRgL7Y4gtDzz2Sp8eBw 6oQgOd+o9dlpbmKNcqvP+ZZvUwy4Y7F9sQMyft7Bd9P8+fibrSt9EfVJOcbNGZj7qEdT D/l8oHa+TK5FxF5s4sxOyz3gvsRqRxWLTzu4kM+NAdWeYBIGE4IYz7Md1+MRd74GcijR ozAEXjm/ZAJqvlDnUOtAtr5Vk78N6cNPokGXeNk5tGoSaMQ60CjM6gp2yunDnWCCWyY1 LYcYF+A09QLndK5W7TIuNtaSUVDWqH3UQHxP2/PwSWFMOVUYXKn3oDhDDQiRfQq52NFP 1KBA== 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=CYO3jLLdqXeezxgml/hOLnYiONhTc329cwaZR8YnfiQ=; b=fouzPfwEc+88WqO6podomvzMq4ILrQJdeuuiEyhXOM3vT01qp0PcEKCl1kq/R0v6nt nM8iF/0sdaUpNaAST1w4IuZ5XEUD1IVlahMyITH5oRsfR77s1ScF73Ut7wP6y5yH4oNW J4MP178P6qWMppHmM7t3/pRgaeswAXX7t4yMEAWHgcLQTIKudAHEoVsTOvzK7myfA6dr I+9GjyBdvdszRSNzTj9d+s2UOBA8/zJRxJfxuQLKXXCVEq2EwQzLjUbZxmSjU0f/1hTE J1Eugg8lDBZ9wKdZ043hvS0aSsuX4+H0q1QLCxXNoXJAmttCJXSZsmqyNRNvAUt42SBC QOIg== X-Gm-Message-State: AOAM531kwIW4TuU90ZdIyQ1w1vVdI5tv0/YM+yecJm05UI5nb0wR1DaT MhmB9nioIBmpDCSXsdfHq0c/azuBAXOeYg== X-Received: by 2002:a17:902:c808:b029:e6:4204:f62f with SMTP id u8-20020a170902c808b02900e64204f62fmr5612453plx.0.1616503089158; Tue, 23 Mar 2021 05:38:09 -0700 (PDT) Received: from [10.75.0.42] ([45.135.186.113]) by smtp.gmail.com with ESMTPSA id q15sm3172835pje.28.2021.03.23.05.38.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Mar 2021 05:38:08 -0700 (PDT) Subject: Re: [PATCH] usb: gadget: legacy: fix error return code of msg_bind() To: Greg KH Cc: balbi@kernel.org, weiyongjun1@huawei.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210307084915.22022-1-baijiaju1990@gmail.com> From: Jia-Ju Bai Message-ID: <68012333-f9f6-74bb-1ff6-c1b77824ed7e@gmail.com> Date: Tue, 23 Mar 2021 20:37:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/3/23 19:35, Greg KH wrote: > On Sun, Mar 07, 2021 at 12:49:15AM -0800, Jia-Ju Bai wrote: >> When usb_otg_descriptor_alloc() returns NULL to usb_desc, no error >> return code of msg_bind() is assigned. >> To fix this bug, status is assigned with -ENOMEM in this case. >> >> Reported-by: TOTE Robot > Reported-by: TOTE Robot > > These lines are not written correctly :( > > Please fix up and resend. Sorry for the mistake. I will fix it and send a V2 patch. Best wishes, Jia-Ju Bai