From: Yuval Mintz Date: Sun, 17 Aug 2014 13:47:49 +0000 (+0300) Subject: bnx2x: Prevent pci_disable_sriov with assigned VFs X-Git-Tag: fixes-against-v3.18-rc2~81^2~253^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a345ce71e5c027872ae5a595998717dc856272b1;p=pandora-kernel.git bnx2x: Prevent pci_disable_sriov with assigned VFs Trying to disable sriov when VFs are assigned may lead to all kinds of problems. This patch unifies the call in the driver to pci_disable_sriov() and prevents them if some of the PF's child VFs are marked as assigned. [Notice this is a bad scenario either way; User should not reach a point where the OS tries to disable SRIOV when a VF is assigned - but currently there's no way of preventing the user from doing so, and the ill-effect for the driver is smaller this way] Signed-off-by: Yuval Mintz Signed-off-by: Ariel Elior Signed-off-by: David S. Miller --- Reading git-diff-tree failed