Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1376363

RE: [PATCH 13/14] staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures

Path csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod
From Stuart Yoder <stuart.yoder@nxp.com>
Newsgroups linux.kernel
Subject RE: [PATCH 13/14] staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures
Date Tue, 12 Apr 2016 02:50:03 +0200
Message-ID <rmUGL-6Ae-9@gated-at.bofh.it> (permalink)
References <rmUGL-6Ae-11@gated-at.bofh.it> <rmUGL-6Ae-13@gated-at.bofh.it>
X-Greylist delayed 4728 seconds by postgrey-1.27 at vger.kernel.org; Mon, 11 Apr 2016 20:47:47 EDT
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-nxp-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+tltbQYLsRGJcxe4x4Ood/r8z4YCnWZZSgZdQKwy3ho=; b=nTPxBB82DS02kLXG5vJbKoaeZKYjClDL/VsayaWxKRJ2DRol7AUGveHQkiXJ1zEp9jb+C7gdvoYLXNEZ54z3EKaJnewPi17KD2gj3n3ps7igGxBg2C4GcboiHaBuzlI9F0Nut/2HrD3w5sUlsaqlIBsNjFc/jvs7DNNIz9x/rPM=
Thread-Topic [PATCH 13/14] staging: fsl-mc: return -EINVAL for all fsl_mc_portal_allocate() failures
Thread-Index AQHRlBMTceGgL4DgbE+ZJfDJZPV7GJ+FIHmAgABFEuA=
Accept-Language en-US
Content-Language en-US
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 <HE1PR04MB1179CC8FCF139D996331B9708D940@HE1PR04MB1179.eurprd04.prod.outlook.com>
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"
Content-Transfer-Encoding base64
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 robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 34
Organization linux.* mail to news gateway
X-Original-Cc "devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "agraf@suse.de" <agraf@suse.de>, "arnd@arndb.de" <arnd@arndb.de>, Yang-Leo Li <leoyang.li@nxp.com>, Horia Geantă <horia.geanta@freescale.com>
X-Original-Date Mon, 11 Apr 2016 23:14:19 +0000
X-Original-Message-ID <HE1PR04MB16417E58F02248F63781398A8D940@HE1PR04MB1641.eurprd04.prod.outlook.com>
X-Original-References <1460393776-16500-1-git-send-email-stuart.yoder@nxp.com> <CALRxmdCJSswjVj+DfKD9kWAOL0mpStHB5nqRFBghr91XGCA5Yw@mail.gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1376363

Show key headers only | View raw


> -----Original Message-----
> From: Stuart Yoder <stuart.yoder@nxp.com>
> 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ă
> <horia.geanta@nxp.com>, Stuart Yoder <stuart.yoder@nxp.com>
> 
> 
> From: Horia Geantă <horia.geanta@nxp.com>
> 
> 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ă <horia.geanta@nxp.com>
> Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
> ---
>  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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

RE: [PATCH 13/14] staging: fsl-mc: return -EINVAL for all  fsl_mc_portal_allocate() failures Stuart Yoder <stuart.yoder@nxp.com> - 2016-04-12 02:50 +0200

csiph-web