summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/gianfar.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-03-25 09:10:07 +0200
committerDavid S. Miller <davem@davemloft.net>2012-03-25 19:27:48 +0200
commit0015e551edb1d28191567d8a7d1ce5edda404ced (patch)
treea0f8c8e5b7a81bb8aa00007a47454a7cfc62bf9e /drivers/net/ethernet/freescale/gianfar.h
parentUSB: qmi_wwan: Add ZTE (Vodafone) K3570-Z and K3571-Z net interfaces (diff)
downloadlinux-0015e551edb1d28191567d8a7d1ce5edda404ced.tar.xz
linux-0015e551edb1d28191567d8a7d1ce5edda404ced.zip
gianfar: Fix possible overrun and simplify interrupt name field creation
Space allocated for int_name_<foo> is insufficient for maximal device name, expand it. Code to create int_name_<foo> is obscure, simplify it by using sprintf. Found by looking for unnecessary \ line continuations. Signed-off-by: Joe Perches <joe@perches.com> Tested-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.h')
-rw-r--r--drivers/net/ethernet/freescale/gianfar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar.h b/drivers/net/ethernet/freescale/gianfar.h
index fc2488adca36..4c9f8d487dbb 100644
--- a/drivers/net/ethernet/freescale/gianfar.h
+++ b/drivers/net/ethernet/freescale/gianfar.h
@@ -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
{