]> bbs.cooldavid.org Git - net-next-2.6.git/commit
IB/ipath: Future proof eeprom checksum code (contents reading)
authorDave Olson <dave.olson@qlogic.com>
Fri, 17 Aug 2007 21:42:14 +0000 (14:42 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 03:45:57 +0000 (20:45 -0700)
commitd29cc6efb9731a415957b8d0ff16e31729ed6837
treeaff221b626e734db9b0ad9598dfafa6af41fe54f
parent55046698faf6357ff7c53593dbfd43a9a3f681a7
IB/ipath: Future proof eeprom checksum code (contents reading)

In an earlier change, the amount of data read from the flash was
mistakenly limited to the size known to the current driver.  This causes
problems when the length is increased, and written with the new longer
version; the checksum would fail because not enough data was read.
Always read the full 128 byte length to prevent this.

Signed-off-by: Dave Olson <dave.olson@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_eeprom.c