diff options
| author | Kangjie Lu <[email protected]> | 2019-03-15 07:29:43 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2019-04-04 10:49:05 +0000 |
| commit | f0d14edd2ba43b995bef4dd5da5ffe0ae19321a1 (patch) | |
| tree | 9b6994ac065b5caea88612d052c1215fe7fd74bc /drivers/fpga/fpga-bridge.c | |
| parent | PCI: rcar: Fix 64bit MSI message address handling (diff) | |
| download | kernel-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
