aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ixgbevf/vf.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-01-18 22:13:34 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-19 12:35:07 -0500
commit3d8fe98f8d5cb303d907d8f94ea6dc1f9a1d8b7a (patch)
tree12152a144b19938b17e112a2dc7d6f1ffb9d158c /drivers/net/ethernet/intel/ixgbevf/vf.h
parentb5417bf8e8952401bca69ded67c30ead484af823 (diff)
downloadlinux-linaro-stable-3d8fe98f8d5cb303d907d8f94ea6dc1f9a1d8b7a.tar.gz
ixgbevf: make operations tables const
The arrays of function pointers should be const to make life harder for rootkits. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/vf.h')
-rw-r--r--drivers/net/ethernet/intel/ixgbevf/vf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/vf.h b/drivers/net/ethernet/intel/ixgbevf/vf.h
index 10306b492ee6..d556619a9212 100644
--- a/drivers/net/ethernet/intel/ixgbevf/vf.h
+++ b/drivers/net/ethernet/intel/ixgbevf/vf.h
@@ -167,7 +167,7 @@ struct ixgbevf_hw_stats {
struct ixgbevf_info {
enum ixgbe_mac_type mac;
- struct ixgbe_mac_operations *mac_ops;
+ const struct ixgbe_mac_operations *mac_ops;
};
#endif /* __IXGBE_VF_H__ */