1 From 324147c1a6806301d9441a8d83c7c5ac880140cd Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Horia=20Geant=C4=83?= <horia.geanta@nxp.com>
3 Date: Mon, 11 Apr 2016 11:56:16 -0500
4 Subject: [PATCH 177/226] staging: fsl-mc: return -EINVAL for all
5 fsl_mc_portal_allocate() failures
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 There are some error paths that allow for a NULL new_mc_io and err = 0
11 return code. Return -EINVAL instead.
13 Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
14 Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
15 Acked-by: German Rivera <german.rivera@nxp.com>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 drivers/staging/fsl-mc/bus/mc-allocator.c | 1 +
19 1 file changed, 1 insertion(+)
21 --- a/drivers/staging/fsl-mc/bus/mc-allocator.c
22 +++ b/drivers/staging/fsl-mc/bus/mc-allocator.c
23 @@ -293,6 +293,7 @@ int __must_check fsl_mc_portal_allocate(
28 dpmcp_dev = resource->data;
29 if (WARN_ON(!dpmcp_dev))
30 goto error_cleanup_resource;