diff options
author | Kangjie Lu <kjlu@umn.edu> | 2019-03-15 10:29:43 +0300 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2019-04-04 13:49:05 +0300 |
commit | f0d14edd2ba43b995bef4dd5da5ffe0ae19321a1 (patch) | |
tree | 9b6994ac065b5caea88612d052c1215fe7fd74bc /drivers/net/ethernet/oki-semi | |
parent | 954b4b752a4c4e963b017ed8cef4c453c5ed308d (diff) | |
download | linux-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