davinci_emac: off by one
authorDan Carpenter <error27@gmail.com>
Tue, 2 Mar 2010 21:07:24 +0000 (21:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Mar 2010 09:04:39 +0000 (01:04 -0800)
commit4d27b87785a743fdae653d395a3a4e763269c53c
tree6d2458620d07a9c34b91c9814bafbca3fc91f3a3
parentbf829370a8d664d87a61697c8a0d6d780c336aa4
davinci_emac: off by one

This off by one error was found by smatch.

drivers/net/davinci_emac.c +2390 emac_dev_open(13) error: buffer overflow 'priv->mac_addr' 6 <= 6

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/davinci_emac.c