]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: fix flash fw version read
authoramit salecha <amit.salecha@qlogic.com>
Mon, 10 Jan 2011 00:15:21 +0000 (00:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jan 2011 21:34:54 +0000 (13:34 -0800)
commitf7240b33acd4fbc81b178dd977165935b18fcb01
tree922d04e0def9723cae63d8a0de1daa77d9bf2c94
parente1e25242ddd23279dd57b290deb2d0ba90b9c239
qlcnic: fix flash fw version read

Driver is reading flash fw version from defined address, this address
may be invalid. Indeed Driver should read address for fw version through
flash layout table. Flash layout table has defined region and address for
fw version address should be read from fw image region.

Driver has check for old firmware, this bug can cause driver load fail.
This patch will try to read fw version from flash image region, if that fails,
read from defined address.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic.h
drivers/net/qlcnic/qlcnic_init.c