]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tg3: Return size from tg3_vpd_readblock()
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 20 Jul 2011 10:20:56 +0000 (10:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jul 2011 19:36:15 +0000 (12:36 -0700)
commit535a490eaddab484c53717fe2feeba800c9cdda2
tree04a209d617f769e35c93f3257ab9a316a7d348b8
parent3aa1cdf87c0b3f2345e75c474acc32ebbf0a4724
tg3: Return size from tg3_vpd_readblock()

Newer VPD datablocks can exceed the size the tg3 driver is traditionally
used to.  This can cause some of the routines that operate on the VPD
data to fail when in-fact they could have succeeded had they known the
correct size.  This patch fixes the problem.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c