Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755428AbcDLArs (ORCPT ); Mon, 11 Apr 2016 20:47:48 -0400 Received: from mail-db3on0078.outbound.protection.outlook.com ([157.55.234.78]:9560 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754933AbcDLArr (ORCPT ); Mon, 11 Apr 2016 20:47:47 -0400 X-Greylist: delayed 4728 seconds by postgrey-1.27 at vger.kernel.org; Mon, 11 Apr 2016 20:47:47 EDT From: Stuart Yoder To: "gregkh@linuxfoundation.org" , Jose Rivera CC: "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" , "agraf@suse.de" , "arnd@arndb.de" , Yang-Leo Li , =?utf-8?B?SG9yaWEgR2VhbnTEgw==?= Subject: RE: [PATCH 13/14] staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures Thread-Topic: [PATCH 13/14] staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures Thread-Index: AQHRlBMTceGgL4DgbE+ZJfDJZPV7GJ+FIHmAgABFEuA= Date: Mon, 11 Apr 2016 23:14:19 +0000 Message-ID: References: <1460393776-16500-1-git-send-email-stuart.yoder@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [162.203.173.167] x-ms-office365-filtering-correlation-id: 441d2120-856a-4f83-42df-08d3625f02df x-microsoft-exchange-diagnostics: 1;HE1PR04MB1179;5:SP9ta2JY6zqMWQ/5MK7ZYjilIxCnVt9xkh5k2zTNjsUFps5lhC3fPHqnvwJmdlrBMYDEnJkmnSm2d2Kw2RlYh4XuKraV11CmCsMa7dq+sehr34/qFdmOk26fpHCrHI15uR7wgzxE6S4vc8k2g+g7Sw==;24:ga636c771Fm7D0V0PVtYy8hnYGRYfsyahBI6dszJ+Xlgv0nRZXB0CK4YmYJmgwCMLtr42X1kEHBPiMyl9sTLNrltHfo0K55Y5aL6g3PCRoc= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB1179; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026);SRVR:HE1PR04MB1179;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB1179; x-forefront-prvs: 09090B6B69 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(13464003)(377454003)(77096005)(5008740100001)(164054004)(2900100001)(2950100001)(33656002)(74316001)(4326007)(5004730100002)(76176999)(54356999)(50986999)(5001770100001)(5002640100001)(122556002)(189998001)(2501003)(10400500002)(1096002)(19580395003)(19580405001)(86362001)(92566002)(76576001)(6116002)(586003)(5003600100002)(87936001)(102836003)(3846002)(66066001)(3280700002)(2906002)(1220700001)(81166005)(106116001)(3660700001)(9686002)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB1179;H:HE1PR04MB1641.eurprd04.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2016 23:14:19.6941 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1179 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u3C0ltBY006371 Content-Length: 1884 Lines: 50 > -----Original Message----- > From: Stuart Yoder > Date: Mon, Apr 11, 2016 at 11:56 AM > Subject: [PATCH 13/14] staging: fsl-mc: return -EINVAL for all > fsl_mc_portal_allocate() failures > To: gregkh@linuxfoundation.org, german.rivera@nxp.com > Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, > agraf@suse.de, arnd@arndb.de, leoyang.li@nxp.com, Horia Geantă > , Stuart Yoder > > > From: Horia Geantă > > There are some error paths that allow for a NULL new_mc_io and err = 0 > return code. Return -EINVAL instead. > > Signed-off-by: Horia Geantă > Signed-off-by: Stuart Yoder > --- > drivers/staging/fsl-mc/bus/mc-allocator.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/staging/fsl-mc/bus/mc-allocator.c > b/drivers/staging/fsl-mc/bus/mc-allocator.c > index 4676ba1..7ee71e7 100644 > --- a/drivers/staging/fsl-mc/bus/mc-allocator.c > +++ b/drivers/staging/fsl-mc/bus/mc-allocator.c > @@ -306,6 +306,7 @@ int __must_check fsl_mc_portal_allocate(struct > fsl_mc_device *mc_dev, > if (error < 0) > return error; > > + error = -EINVAL; > dpmcp_dev = resource->data; > if (WARN_ON(!dpmcp_dev)) > goto error_cleanup_resource; > -- > 1.7.9.5 I had smtp mail server weirdness that led me to belive that the freescale.com email addresses in this patch were causing the patch to not show up on the mailing list, so I resent [PATCH 13/14] with the email address changed to nxp.com. Then both copies of [PATCH 13/14] showed up. So please ignore the duplicated email for this patch. Both copies are identical and either either freescale.com or nxp.com are ok for the email address. nxp.com version would be preferred I guess. Thanks, Stuart