Merge "qcacld-3.0: Check for NULL before dereferencing ll_stats result buffer" into wlan-cld3.driver.lnx.2.0

This commit is contained in:
CNSS_WLAN Service 2017-12-06 15:31:16 -08:00 committed by Gerrit - the friendly Code Review server
commit c4ae879dad

View File

@ -51,8 +51,13 @@ void hdd_debugfs_process_iface_stats(struct hdd_adapter *adapter,
uint8_t *buffer;
ENTER();
iface_stat = data;
if (!ll_stats.result) {
hdd_err("LL statistics buffer is NULL");
return;
}
iface_stat = data;
buffer = ll_stats.result;
buffer += ll_stats.len;
len = scnprintf(buffer, DEBUGFS_LLSTATS_BUF_SIZE - ll_stats.len,