]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
gianfar: Fix possible overrun and simplify interrupt name field creation
authorJoe Perches <joe@perches.com>
Sun, 25 Mar 2012 07:10:07 +0000 (07:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Mar 2012 17:27:48 +0000 (13:27 -0400)
commit0015e551edb1d28191567d8a7d1ce5edda404ced
treea0f8c8e5b7a81bb8aa00007a47454a7cfc62bf9e
parentdbb6d0956877b99e78b8e0dc0e4e56d9e936b5ab
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>
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/freescale/gianfar.h