]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Protect code with NOMCP
authorVladislav Zolotarov <vladz@broadcom.com>
Mon, 19 Apr 2010 01:13:49 +0000 (01:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Apr 2010 20:17:07 +0000 (13:17 -0700)
commit3ec588fdfc0938649d584e293b780595d533fc4d
treed341b038d9233101f5a10ef8772748582eb97265
parent22af3edd72f4371a80852dd36c9da846afc7cc16
bnx2x: Protect code with NOMCP

Don't run code that can't be run if MCP is not present.
This will prevent NULL pointer dereferencing.

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_main.c