From: Ariel Elior Date: Mon, 19 Aug 2013 06:12:00 +0000 (+0300) Subject: bnx2x: Protect against VFs' ndos when SR-IOV is disabled X-Git-Tag: v3.11-rc7~11^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ae30d78042ab7790c40b530153c8fdabe1c0ee1;p=pandora-kernel.git bnx2x: Protect against VFs' ndos when SR-IOV is disabled Since SR-IOV can be activated dynamically and iproute2 can be called asynchronously, the various callbacks need a robust sanity check before attempting to access the SR-IOV database and members since there are numerous states in which it can find the driver (e.g., PF is down, sriov was not enabled yet, VF is down, etc.). In many of the states the callback result will be null pointer dereference. Signed-off-by: Ariel Elior Signed-off-by: Yuval Mintz Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- Reading git-diff-tree failed