aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorKangjie Lu <[email protected]>2019-03-15 07:29:43 +0000
committerLorenzo Pieralisi <[email protected]>2019-04-04 10:49:05 +0000
commitf0d14edd2ba43b995bef4dd5da5ffe0ae19321a1 (patch)
tree9b6994ac065b5caea88612d052c1215fe7fd74bc /drivers/fpga/fpga-bridge.c
parentPCI: rcar: Fix 64bit MSI message address handling (diff)
downloadkernel-f0d14edd2ba43b995bef4dd5da5ffe0ae19321a1.tar.gz
kernel-f0d14edd2ba43b995bef4dd5da5ffe0ae19321a1.zip
PCI: rcar: Fix a potential NULL pointer dereference
In case __get_free_pages() fails and returns NULL, fix the return value to -ENOMEM and release resources to avoid dereferencing a NULL pointer. Signed-off-by: Kangjie Lu <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Ulrich Hecht <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Simon Horman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions