]> git.baikalelectronics.ru Git - kernel.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)
commit384383fa6a00db1d4fa74c292bbb89bab0438a0a
tree04a209d617f769e35c93f3257ab9a316a7d348b8
parentfe381546926780f1e213cbcb9ee44d341b0eaf2d
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