]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Fix to avoid firmware update when interface is not open.
authorSarveshwar Bandi <Sarveshwar.Bandi@emulex.com>
Thu, 18 Nov 2010 23:44:45 +0000 (23:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Nov 2010 16:57:19 +0000 (08:57 -0800)
commit7bf03e5122967ad9f7b7c6b8aa1ead8e5fd2c5c9
treebd5adfe7c959ea1bca55f0f7dcd7e2c23701a304
parentc276c82c37c6d4d02534cc198298c4ba1eb51d42
be2net: Fix to avoid firmware update when interface is not open.

Since interrupts are enabled only when open is called on the interface,
Attempting a firmware update operation when interface is down could lead to
partial success or failure of operation. This fix fails the request if
netif_running is false.

Signed-off-by: Sarveshwar Bandi <Sarveshwar.Bandi@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c