Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 933fce12 authored by Amit Kumar Salecha's avatar Amit Kumar Salecha Committed by David S. Miller
Browse files

qlcnic: fix aer for virtual func



Virtual function are not privilge to initialize firmware.

Signed-off-by: default avatarAmit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1f76da51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2733,7 +2733,7 @@ static int qlcnic_attach_func(struct pci_dev *pdev)
	if (qlcnic_api_lock(adapter))
		return -EINVAL;

	if (first_func) {
	if (adapter->op_mode != QLCNIC_NON_PRIV_FUNC && first_func) {
		adapter->need_fw_reset = 1;
		set_bit(__QLCNIC_START_FW, &adapter->state);
		QLCWR32(adapter, QLCNIC_CRB_DEV_STATE, QLCNIC_DEV_INITIALIZING);