lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 11 Apr 2016 23:14:19 +0000
From:	Stuart Yoder <stuart.yoder@....com>
To:	"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
	Jose Rivera <german.rivera@....com>
CC:	"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"agraf@...e.de" <agraf@...e.de>, "arnd@...db.de" <arnd@...db.de>,
	Yang-Leo Li <leoyang.li@....com>,
	Horia Geantă <horia.geanta@...escale.com>
Subject: RE: [PATCH 13/14] staging: fsl-mc: return -EINVAL for all
 fsl_mc_portal_allocate() failures


> -----Original Message-----
> From: Stuart Yoder <stuart.yoder@....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@...uxfoundation.org, german.rivera@....com
> Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
> agraf@...e.de, arnd@...db.de, leoyang.li@....com, Horia Geantă
> <horia.geanta@....com>, Stuart Yoder <stuart.yoder@....com>
> 
> 
> From: Horia Geantă <horia.geanta@....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@....com>
> Signed-off-by: Stuart Yoder <stuart.yoder@....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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ