Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4169897pxf; Tue, 23 Mar 2021 04:40:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNWsumaNUxtOx0uDeFKhSvDT0w5aadTfc+Boa8qm5bp899qL6D3iLekx1D/2tZ7kbtA0C1 X-Received: by 2002:a17:906:9243:: with SMTP id c3mr4696377ejx.388.1616499605876; Tue, 23 Mar 2021 04:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616499605; cv=none; d=google.com; s=arc-20160816; b=K1Q5LlVeY6B4zh71V7dEYDJ5GYYIKG/sPQAGSCLD9Rk9BBDAmN4OXgfTml9FTB18+Y 5iLb6pr5uPUrTUZTGJOAPJdlNUENsi0BzDvFo2Agne9hcz1Aog8hk3p9oGZJYrN7keYJ q7x1XOszKQDu8sKCTKK/tQeDQ9YcWPsv4stMOh0MQAPV03JJlq+DDOpOspKIu4qw42ws Wz13S2To4+z8uDGV4c5/hVIVWJgbIXYBksFPM0TO68l/o2CV09UXzi6VxGliGeSzT3pF Z1l+tXGPD5s8x0Gxtx57Ks8fPa7MxRGMOQIfQZLSoBSJuww6ZiJEBcMrv4UUpg+Ohexs LdVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Bnl5+Yqtp2XaLtQdqFt7YCHzRqOix1Eksj3sUiJ8eDE=; b=X8FDDFLti/MPPTghGOLLdaDbYt1jOwkjphRi6ednWxS7XLFM2SGKcDb6uV62A/o8lb tpofuuQp3MubIuR0pqBvqwu9PUoErt8Chb76618C3fsyZP8sm7FF47pGh4aEImuxVc3u xYIhNZvSea/VPROOpuFu7kAiyo83ibovUV39jzYTQRhlsba9IS1WEedxodHbVDZFcO22 EL/wndPwdLPwWx1pYowwEbUkjoxtACdICYd7f6DEumeWlDYQBZ4h+snoC836RIcxmwCa E6V9S0KQ1WaV21XMNP0Vlx+uTcYpEnhSnvnMm0JpvVTRtbjhVursRxyysiJlEJG1xoB3 Hmmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="SDkSw/Ky"; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si13225972ejp.378.2021.03.23.04.39.42; Tue, 23 Mar 2021 04:40:05 -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=@linuxfoundation.org header.s=korg header.b="SDkSw/Ky"; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbhCWLgn (ORCPT + 99 others); Tue, 23 Mar 2021 07:36:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:52646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbhCWLfs (ORCPT ); Tue, 23 Mar 2021 07:35:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4AD13619B1; Tue, 23 Mar 2021 11:35:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616499347; bh=0tB7JB1Ym0+rZ4dU0rvwfin8XCc0CyQvjYTK3UKsTWQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SDkSw/Kyj7u1ThCWIxWdjKUuOkd5gDb1b7si710tO6GUJ+TnzhO0TMOr/EGUTbnVj KXivBAl9avqai0DQw3MCJU4XVGons8E5lurDk+wDFLUinXx3LPnMdF1eDq+svH0l84 vr4sY+JXcJO/7rl/fuUuUAoMTK8BcXLfMNGNlLuE= Date: Tue, 23 Mar 2021 12:35:45 +0100 From: Greg KH To: Jia-Ju Bai Cc: balbi@kernel.org, weiyongjun1@huawei.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH resend] usb: gadget: legacy: fix error return code of msg_bind() Message-ID: References: <20210307085219.22147-1-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210307085219.22147-1-baijiaju1990@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 07, 2021 at 12:52:19AM -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 > You have 2 '>' on the end of this line :(