commit | 2794ffc441dde3109804085dc745e8014a4de224 | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@armlinux.org.uk> | Fri Dec 15 16:09:41 2017 +0000 |
committer | David S. Miller <davem@davemloft.net> | Mon Dec 18 14:57:48 2017 -0500 |
tree | d80d005d64cb8214246c3940695a77628e3f4eb5 | |
parent | 20b56ed9f8adfb9a7fb1c878878c54aa4ed645c1 [diff] |
sfp: fix EEPROM reading in the case of non-SFF8472 SFPs The EEPROM reading was trying to read from the second EEPROM address if we requested the last byte from the SFF8079 EEPROM, which caused a failure when the second EEPROM is not present. Discovered with a S-RJ01 SFP module. Fix this. Fixes: 73970055450e ("sfp: add SFP module support") Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>