gianfar: Fix possible overrun and simplify interrupt name field creation
[~shefty/rdma-dev.git] / drivers / net / ethernet / freescale / gianfar.h
index fc2488adca366f15af3503d582c8251e39812c17..4c9f8d487dbbf4825e10fc2e3ee25199662e7517 100644 (file)
@@ -517,7 +517,7 @@ extern const char gfar_driver_version[];
 #define RXFCB_PERR_MASK                0x000c
 #define RXFCB_PERR_BADL3       0x0008
 
-#define GFAR_INT_NAME_MAX      IFNAMSIZ + 4
+#define GFAR_INT_NAME_MAX      (IFNAMSIZ + 6)  /* '_g#_xx' */
 
 struct txbd8
 {