]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Tue, 15 May 2012 08:37:52 +0000 (16:37 +0800)
commitb3e3b2080ec78b7e590ac811a638b1d3323d1dbe
tree319bb4433b2cb76461a196de6ac269b5a9580a12
parentafe84b699be94d98d2fae3a59d65665457be8d36
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>
(cherry picked from commit 535a490eaddab484c53717fe2feeba800c9cdda2)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/tg3.c