From: Scott Wood Date: Mon, 28 Apr 2014 23:20:09 +0000 (-0500) Subject: powerpc/fsl-rio: Fix fsl_rio_setup error paths and use-after-unmap X-Git-Tag: omap-for-v3.16/fixes-against-rc1~60^2~30^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a614db9ae9377f102d3fc35ca52efd93454f7a77;p=pandora-kernel.git powerpc/fsl-rio: Fix fsl_rio_setup error paths and use-after-unmap Several of the error paths from fsl_rio_setup are missing error messages. Worse, fsl_rio_setup initializes several global pointers and does not NULL them out after freeing/unmapping on error. This caused fsl_rio_mcheck_exception() to crash when accessing rio_regs_win which was non-NULL but had been unmapped. Signed-off-by: Scott Wood Cc: Liu Gang --- Liu Gang, are you sure all of these error conditions are fatal? Why does the rio driver fail if rmu is not present (e.g. on t4240)? --- Reading git-diff-tree failed