qcacld-3.0: Fix NULL pointer dereferencing issues

Fix below issues:
1) check cds_get_context results before use
2) remove function calls from ASSERTs
3) make sure variables are initialized before use
4) check pointers for NULL before dereferencing

Change-Id: Iac92e6f2d1030a7dd12469e34341135bea7c781f
CRs-Fixed: 1047286
(cherry picked from commit a2547fd35fc517abfbc96363768b5d036d59d057)
This commit is contained in:
Himanshu Agarwal
2016-09-08 18:54:47 +05:30
committed by qcabuildsw
부모 863e29e778
커밋 f03f81036d
5개의 변경된 파일61개의 추가작업 그리고 25개의 파일을 삭제

파일 보기

@@ -289,7 +289,7 @@ __ol_transfer_bin_file(struct ol_context *ol_ctx, ATH_BIN_FILE file,
#endif
if (file == ATH_BOARD_DATA_FILE) {
uint32_t board_ext_address;
uint32_t board_ext_address = 0;
int32_t board_ext_data_size;
temp_eeprom = qdf_mem_malloc(fw_entry_size);