]> 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)
commit1418af7511f8953b7745ed3618505aa9dd40621f
tree04a209d617f769e35c93f3257ab9a316a7d348b8
parent024813d2245b1c391df8353cbeb71678824f689b
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