diff options
author | Kangjie Lu <[email protected]> | 2019-03-25 17:19:09 -0500 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2019-03-29 16:28:20 +0000 |
commit | 699ca30162686bf305cdf94861be02eb0cf9bda2 (patch) | |
tree | 34b1504fdd741b0a0149a2d5f79d080837f5d454 /drivers/pci/controller/dwc | |
parent | 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff) |
PCI: xilinx: Check for __get_free_pages() failure
If __get_free_pages() fails, return -ENOMEM to avoid a NULL pointer
dereference.
Signed-off-by: Kangjie Lu <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions