diff options
| author | Haiyang Zhang <[email protected]> | 2021-05-25 23:17:33 +0000 |
|---|---|---|
| committer | Wei Liu <[email protected]> | 2021-06-20 23:08:56 +0000 |
| commit | 7d815f4afa87f2032b650ae1bba7534b550a6b8b (patch) | |
| tree | 3dbbec7c86a6b34b324ef050a0f47a5436e9f6e8 /lib/test_printf.c | |
| parent | Drivers: hv: Move Hyper-V extended capability check to arch neutral code (diff) | |
| download | kernel-7d815f4afa87f2032b650ae1bba7534b550a6b8b.tar.gz kernel-7d815f4afa87f2032b650ae1bba7534b550a6b8b.zip | |
PCI: hv: Add check for hyperv_initialized in init_hv_pci_drv()
Add check for hv_is_hyperv_initialized() at the top of
init_hv_pci_drv(), so if the pci-hyperv driver is force-loaded on non
Hyper-V platforms, the init_hv_pci_drv() will exit immediately, without
any side effects, like assignments to hvpci_block_ops, etc.
Signed-off-by: Haiyang Zhang <[email protected]>
Reported-and-tested-by: Mohammad Alqayeem <[email protected]>
Reviewed-by: Wei Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions
