]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ixgbe: Add a few safety nets for register writes and descriptor cleanups
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Fri, 13 Mar 2009 22:14:50 +0000 (22:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Mar 2009 19:41:12 +0000 (12:41 -0700)
commit9891ca7cdc42354ec48c0f76256fdcc9808ffc7e
tree9c1ca0824399da284c1e0bf31dce42145f7d2877
parent2a41ff81162c7c406bb2a04e425a7ed51c85d89d
ixgbe: Add a few safety nets for register writes and descriptor cleanups

There are possible times that a driver may fail to completely initialize,
due to a buggy platform or a buggy kernel.  In those cases, we'd rather
fail gracefully instead of a panic.  Add a few safety checks to some
critical paths to try and prevent a panic in these corner-case situations.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c