commit | 535a490eaddab484c53717fe2feeba800c9cdda2 | [log] [tgz] |
---|---|---|
author | Matt Carlson <mcarlson@broadcom.com> | Wed Jul 20 10:20:56 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Jul 21 12:36:15 2011 -0700 |
tree | 04a209d617f769e35c93f3257ab9a316a7d348b8 | |
parent | 3aa1cdf87c0b3f2345e75c474acc32ebbf0a4724 [diff] |
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>