EDAC, synopsys: Add error handling for the of_device_get_match_data() result
authorManish Narani <manish.narani@xilinx.com>
Thu, 25 Oct 2018 06:06:56 +0000 (11:36 +0530)
committerBorislav Petkov <bp@suse.de>
Mon, 5 Nov 2018 12:36:20 +0000 (13:36 +0100)
commit84de0b493ff62993c4047dd15318cc23f83923d3
treeae1e2faff6f3ce91a1ffce706caf6ffaf6e69c23
parent3d02a8975e321ef6219ec911742d741d2d73c89c
EDAC, synopsys: Add error handling for the of_device_get_match_data() result

The function of_device_get_match_data() can return NULL in case of
error. Add error handling for the same in the mc_probe() function.

Signed-off-by: Manish Narani <manish.narani@xilinx.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
CC: Mauro Carvalho Chehab <mchehab@kernel.org>
CC: Michal Simek <michal.simek@xilinx.com>
CC: amit.kucheria@linaro.org
CC: devicetree@vger.kernel.org
CC: leoyang.li@nxp.com
CC: linux-arm-kernel@lists.infradead.org
CC: linux-edac <linux-edac@vger.kernel.org>
CC: mark.rutland@arm.com
CC: robh+dt@kernel.org
CC: sudeep.holla@arm.com
Link: http://lkml.kernel.org/r/1540447621-22870-2-git-send-email-manish.narani@xilinx.com
drivers/edac/synopsys_edac.c