]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Loaded Firmware Version Validation
authorAriel Elior <ariele@broadcom.com>
Thu, 26 Jan 2012 06:01:49 +0000 (06:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2012 18:39:51 +0000 (13:39 -0500)
commit73dd7d8e85c90c014760991237b0cec5962af665
treebba02575b85901407510c63d0d5de667c7e86423
parent5f1ee09fb8bb65c64f4c42dd08c074f0c696f6c3
bnx2x: Loaded Firmware Version Validation

In a virtualized environment it is possible for a loading driver to discover
that Firmware is already loaded to the device, and that this FW does not match
its own. This can happen for example if different Physical Functions are
Assigned to different VMs in which different driver versions are loaded. The
code in this patch ensures that only drivers with matching FW are loaded over
the device, and that in the case described above where the Firmware version
doesn't match the driver load is aborted.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c