summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/oki-semi
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2019-03-15 10:29:43 +0300
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2019-04-04 13:49:05 +0300
commitf0d14edd2ba43b995bef4dd5da5ffe0ae19321a1 (patch)
tree9b6994ac065b5caea88612d052c1215fe7fd74bc /drivers/net/ethernet/oki-semi
parent954b4b752a4c4e963b017ed8cef4c453c5ed308d (diff)
downloadlinux-f0d14edd2ba43b995bef4dd5da5ffe0ae19321a1.tar.xz
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 <kjlu@umn.edu> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/net/ethernet/oki-semi')
0 files changed, 0 insertions, 0 deletions