Skip to content
Commit 26fd962b authored by Kangjie Lu's avatar Kangjie Lu Committed by David S. Miller
Browse files

niu: fix missing checks of niu_pci_eeprom_read



niu_pci_eeprom_read() may fail, so we should check its return value
before using the read data.

Signed-off-by: default avatarKangjie Lu <kjlu@umn.edu>
Acked-by: default avatarShannon Nelson <shannon.lee.nelson@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ca19fcb6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment