pvpanic-pci.c (db3a4f0abefd7be96089fcd74029c259df3bed76) | pvpanic-pci.c (642fa28bb5ee2cf72e7d86b2fa9d06f2b04c9fb3) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Pvpanic PCI Device Support 4 * 5 * Copyright (C) 2021 Oracle. 6 */ 7 8#include <linux/kernel.h> --- 69 unchanged lines hidden (view full) --- 78 void __iomem *base; 79 int ret; 80 81 ret = pci_enable_device(pdev); 82 if (ret < 0) 83 return ret; 84 85 base = pci_iomap(pdev, 0, 0); | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Pvpanic PCI Device Support 4 * 5 * Copyright (C) 2021 Oracle. 6 */ 7 8#include <linux/kernel.h> --- 69 unchanged lines hidden (view full) --- 78 void __iomem *base; 79 int ret; 80 81 ret = pci_enable_device(pdev); 82 if (ret < 0) 83 return ret; 84 85 base = pci_iomap(pdev, 0, 0); |
86 if (IS_ERR(base)) 87 return PTR_ERR(base); | 86 if (!base) 87 return -ENOMEM; |
88 89 pi = kmalloc(sizeof(*pi), GFP_ATOMIC); 90 if (!pi) 91 return -ENOMEM; 92 93 pi->base = base; 94 pi->capability = PVPANIC_PANICKED | PVPANIC_CRASH_LOADED; 95 --- 30 unchanged lines hidden --- | 88 89 pi = kmalloc(sizeof(*pi), GFP_ATOMIC); 90 if (!pi) 91 return -ENOMEM; 92 93 pi->base = base; 94 pi->capability = PVPANIC_PANICKED | PVPANIC_CRASH_LOADED; 95 --- 30 unchanged lines hidden --- |