• Yuval Mintz's avatar
    bnx2x: Don't release PCI bars on shutdown · d9aee591
    Yuval Mintz authored
    The bnx2x driver in its pci shutdown() callback releases its pci bars (in the
    same manner it does during its pci remove() callback).
    During a system reboot while VFs are enabled, its possible for the VF's remove
    to be called (as a result of pci_disable_sriov()) after its shutdown callback
    has already finished running; This will cause a paging request fault as the VF
    tries to access the pci bar which it has previously released, crashing the
    system.
    
    This patch further differentiates the shutdown and remove callbacks, preventing the
    pci release procedures from being called during shutdown.
    Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
    Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d9aee591
bnx2x_main.c 375 KB