* [merged] powerpc-fsl_rio-fix-a-missing-error-code.patch removed from -mm tree
@ 2016-08-08 20:15 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-08-08 20:15 UTC (permalink / raw)
To: dan.carpenter, alexandre.bounine, benh, mpe, paulus, mm-commits
The patch titled
Subject: powerpc/fsl_rio: fix a missing error code
has been removed from the -mm tree. Its filename was
powerpc-fsl_rio-fix-a-missing-error-code.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Dan Carpenter <dan.carpenter@oracle.com>
Subject: powerpc/fsl_rio: fix a missing error code
We should set the error code here rather than incorrectly returning 0.
Otherwise static checkers complain.
Link: http://lkml.kernel.org/r/20160804053525.GM775@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Alexandre Bounine <alexandre.bounine@idt.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/powerpc/sysdev/fsl_rio.c | 1 +
1 file changed, 1 insertion(+)
diff -puN arch/powerpc/sysdev/fsl_rio.c~powerpc-fsl_rio-fix-a-missing-error-code arch/powerpc/sysdev/fsl_rio.c
--- a/arch/powerpc/sysdev/fsl_rio.c~powerpc-fsl_rio-fix-a-missing-error-code
+++ a/arch/powerpc/sysdev/fsl_rio.c
@@ -491,6 +491,7 @@ int fsl_rio_setup(struct platform_device
rmu_node = of_parse_phandle(dev->dev.of_node, "fsl,srio-rmu-handle", 0);
if (!rmu_node) {
dev_err(&dev->dev, "No valid fsl,srio-rmu-handle property\n");
+ rc = -ENOENT;
goto err_rmu;
}
rc = of_address_to_resource(rmu_node, 0, &rmu_regs);
_
Patches currently in -mm which might be from dan.carpenter@oracle.com are
rapidio-dereferencing-an-error-pointer.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-08 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08 20:15 [merged] powerpc-fsl_rio-fix-a-missing-error-code.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.