]> bbs.cooldavid.org Git - net-next-2.6.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)
commit2145a92057a94d2d1e3e9674fe03774cda7455ad
treed341b038d9233101f5a10ef8772748582eb97265
parent02e3c6cb3f09ac10a1f16d16cf31c8ecaafd2c67
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