Received: by 10.213.65.68 with SMTP id h4csp630313imn; Thu, 22 Mar 2018 05:24:00 -0700 (PDT) X-Google-Smtp-Source: AG47ELt00tp+gODuPmeAYdcZXAU23fa9vvqEyO0W48JMoS42Nh/v/5nIdNbLTdW6XSQFwxbpC5+1 X-Received: by 2002:a17:902:6085:: with SMTP id s5-v6mr21725840plj.307.1521721440587; Thu, 22 Mar 2018 05:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521721440; cv=none; d=google.com; s=arc-20160816; b=QUryY0GhmpzDrh5y4cgR1mG+V1+AUCp6ybvZpLiVFmjoCYEzPeB5bP1IC/qsIwjJiB qDDBt040AyQ/A85iCfHeUszMTu/c6DY39G4WrwGiBRHXnzRDknq09xtJWU9ix3U3Ypge 7omeb+6k4aIHoxbN8w6YediLQIblnM51LEFN6pCmLiEdvNb9CECNNU2Xm196+e2WyoWz MT5UPq3ynl6RLPpbVeVCKOwzfCTiqd6he96T9iFgJdzUrQJ1u+IzqkelGm2mcmdnxduo MEWAgcIKswppRqFCi85ee/lWHIdQxB+NkmQdvdfzVtNGkPLczrp2kYN58hxIutTOR9xR gGSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:arc-authentication-results; bh=qvIMUUVd9d0Uu5Yiq1JGKSBS6+1cN6cPAaP2b5y6KMg=; b=CiF+ylRBy3C0H5/ZjXcZK4jJyVzERFvRqCOvAZIA110gi3XnDcZEf8B9AJ4zCVbE2A F0kJs0RDboNpdsCe53fQj+5VLdIYT2hj9zZ2vi/CfgKFJEWEgH7M07UedhWKnCvvlhLn gwou7E1ch1CQJBFSX8k8s+JyHX80YasNOB54rmMC/WYUAOPu73J62E2QwNIkfj/vX49J e2Crdricfe09z9Q8O8Qp/02As6MB0wEPuLw6Vc+YoSUOnKeFQH5y4b4ECrr7h8R8Icu/ /nQti9/4Qu4pQMvkzk+bNG0wz7JcD4gKD90NuAWLCo2B3CpZqm982RnUIM37u6m+aav4 cKBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4-v6si6019047plk.422.2018.03.22.05.23.45; Thu, 22 Mar 2018 05:24:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754602AbeCVMWs (ORCPT + 99 others); Thu, 22 Mar 2018 08:22:48 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:47103 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751835AbeCVMWq (ORCPT ); Thu, 22 Mar 2018 08:22:46 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w2MCIld3003475; Thu, 22 Mar 2018 13:21:39 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2gv6741y0r-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 22 Mar 2018 13:21:39 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CD7FB31; Thu, 22 Mar 2018 12:21:37 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A23E4279B; Thu, 22 Mar 2018 12:21:37 +0000 (GMT) Received: from SFHDAG3NODE2.st.com (10.75.127.8) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 22 Mar 2018 13:21:37 +0100 Received: from SFHDAG3NODE2.st.com ([fe80::b82f:1ce:8854:5b96]) by SFHDAG3NODE2.st.com ([fe80::b82f:1ce:8854:5b96%20]) with mapi id 15.00.1347.000; Thu, 22 Mar 2018 13:21:37 +0100 From: Amelie DELAUNAY To: =?utf-8?B?SGVpa28gU3TDvGJuZXI=?= , Tomeu Vizoso CC: "linux-kernel@vger.kernel.org" , "Felipe Balbi" , Minas Harutyunyan , Greg Kroah-Hartman , "linux-usb@vger.kernel.org" Subject: Re: [PATCH] usb: dwc2: dwc2_vbus_supply_init: fix error check Thread-Topic: [PATCH] usb: dwc2: dwc2_vbus_supply_init: fix error check Thread-Index: AQHTwcHTIMjTpWUNYk2vfSjZYN5viKPcEIWAgAAArQCAAAsrAA== Date: Thu, 22 Mar 2018 12:21:37 +0000 Message-ID: <4ff302fe-dc89-a7fc-5454-6a518256c912@st.com> References: <20180322093943.49717-1-tomeu.vizoso@collabora.com> <1711886.RiDBCvOSMq@diego> <3806387.a3O5bOALIr@diego> In-Reply-To: <3806387.a3O5bOALIr@diego> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.45] Content-Type: text/plain; charset="utf-8" Content-ID: <5B59D49F0FD9744F9B07538343F76CA5@st.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-22_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgSGVpa28sDQpIaSBUb21ldSwNCg0KT24gMDMvMjIvMjAxOCAxMjo0MSBQTSwgSGVpa28gU3TD vGJuZXIgd3JvdGU6DQo+IEhpIFRvbWV1LA0KPiANCj4gQW0gRG9ubmVyc3RhZywgMjIuIE3DpHJ6 IDIwMTgsIDEyOjM5OjEzIENFVCBzY2hyaWViIEhlaWtvIFN0w7xibmVyOg0KPj4gQW0gRG9ubmVy c3RhZywgMjIuIE3DpHJ6IDIwMTgsIDEwOjM5OjQzIENFVCBzY2hyaWViIFRvbWV1IFZpem9zbzoN Cj4+PiBkZXZtX3JlZ3VsYXRvcl9nZXRfb3B0aW9uYWwgcmV0dXJucyAtRU5PREVWIGlmIHRoZSBy ZWd1bGF0b3IgaXNuJ3QNCj4+PiB0aGVyZSwgc28gaWYgdGhhdCdzIHRoZSBjYXNlIHdlIGhhdmUg dG8gbWFrZSBzdXJlIG5vdCB0byBsZWF2ZSAtRU5PREVWDQo+Pj4gaW4gdGhlIHJlZ3VsYXRvciBw b2ludGVyLg0KPj4+DQo+Pj4gQWxzbywgbWFrZSBzdXJlIHdlIHJldHVybiAwIGluIHRoYXQgY2Fz ZSwgYnV0IGNvcnJlY3RseSBwcm9wYWdhdGUgYW55DQo+Pj4gb3RoZXIgZXJyb3JzLiBBbHNvIHBy b3BhZ2F0ZSB0aGUgZXJyb3IgZnJvbSBfZHdjMl9oY2Rfc3RhcnQuDQo+Pj4NCj4+PiBGaXhlczog NTMxZWY1ZWJlYTk2ICgidXNiOiBkd2MyOiBhZGQgc3VwcG9ydCBmb3IgaG9zdCBtb2RlIGV4dGVy bmFsIHZidXMNCj4+PiBzdXBwbHkiKSBDYzogQW1lbGllIERlbGF1bmF5IDxhbWVsaWUuZGVsYXVu YXlAc3QuY29tPg0KPj4+IF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