netxen: validate unified romimage
Signed-off-by: Rajesh K Borundia <rajesh.borundia@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Validate all sections of unified romimage, before accessing them, to avoid seg fault. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6b50ea1516
commit
10c0f2a852
@@ -420,7 +420,6 @@ struct status_desc {
|
||||
} __attribute__ ((aligned(16)));
|
||||
|
||||
/* UNIFIED ROMIMAGE *************************/
|
||||
#define NX_UNI_FW_MIN_SIZE 0xc8000
|
||||
#define NX_UNI_DIR_SECT_PRODUCT_TBL 0x0
|
||||
#define NX_UNI_DIR_SECT_BOOTLD 0x6
|
||||
#define NX_UNI_DIR_SECT_FW 0x7
|
||||
|
Reference in New Issue
Block a user