qlcnic: validate unified fw image
authorSucheta Chakraborty <sucheta@dut6195.unminc.com>
Mon, 8 Mar 2010 00:14:48 +0000 (00:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Mar 2010 18:45:30 +0000 (10:45 -0800)
commitb7eff1007fea3d153a9a5c0f872304ec19412bbb
tree6fb11b3fac7310e96ab45300029a096cd763b08f
parent9ab17b3968f9521bb4fffd8767953d2b0148aad0
qlcnic: validate unified fw image

Validate all sections of unified fw image, before accessing them,
to avoid seg fault.

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