diff options
author | Joe Perches <joe@perches.com> | 2012-03-25 07:10:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-25 13:27:48 -0400 |
commit | 0015e551edb1d28191567d8a7d1ce5edda404ced (patch) | |
tree | a0f8c8e5b7a81bb8aa00007a47454a7cfc62bf9e /drivers/net/ethernet/freescale/gianfar.h | |
parent | dbb6d0956877b99e78b8e0dc0e4e56d9e936b5ab (diff) | |
download | talos-op-linux-0015e551edb1d28191567d8a7d1ce5edda404ced.tar.gz talos-op-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.h | 2 |
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 { |