ixgbe: fix potential null dereference
authorJosh Hay <[email protected]>
Fri, 4 Jan 2013 03:34:36 +0000 (03:34 +0000)
committerJeff Kirsher <[email protected]>
Tue, 5 Feb 2013 09:43:49 +0000 (01:43 -0800)
commitf752be9c3de4fbb6a9b2c060f3794bd928a0ad7a
tree2e4c62f9616136c83f11925b41973f46381e9c43
parent07ce870bed2f631ad53a2c1a90db20b5f8126ab9
ixgbe: fix potential null dereference

This patch adds a default case which goes to the next loop iteration
in the case where p is not set, preventing p from being dereferenced.

Signed-off-by: Josh Hay <[email protected]>
Tested-by: Phil Schmitt <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c