lan78xx: Allow EEPROM write for less than MAX_EEPROM_SIZE
authorNisar Sayed <Nisar.Sayed@microchip.com>
Wed, 20 Sep 2017 21:06:37 +0000 (02:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 22:22:53 +0000 (15:22 -0700)
commitc077682282dd34c75e8477c22dffe7c9aebc6e98
treeee343b027385835554cf14309dee539b01cd707b
parent8a7ffeb795f864dd605b579c05934cba95dc8ad3
lan78xx: Allow EEPROM write for less than MAX_EEPROM_SIZE

Allow EEPROM write for less than MAX_EEPROM_SIZE

Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
Signed-off-by: Nisar Sayed <Nisar.Sayed@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c