qcacmn: Add a check to avoid processing invalid pktlog buffers
Avoid further processing of pktlog buffers received from firmware or Hardware if the size is greater than MAX_PKTLOG_RECV_BUF_SIZE. Change-Id: If1dd855137a9b83721f01005fa3367f7924f4ebb CRs-Fixed: 2493721
这个提交包含在:

提交者
nshrivas

父节点
851c69d5bb
当前提交
c0980fd21e
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -33,6 +33,9 @@
|
||||
#define PKTLOG_DEFAULT_PHYERR_THRESH 300
|
||||
#define PKTLOG_DEFAULT_TRIGGER_INTERVAL 500
|
||||
|
||||
/* Max Pktlog buffer size received from fw/hw */
|
||||
#define MAX_PKTLOG_RECV_BUF_SIZE 2048
|
||||
|
||||
struct ath_pktlog_arg {
|
||||
struct ath_pktlog_info *pl_info;
|
||||
uint32_t flags;
|
||||
|
在新工单中引用
屏蔽一个用户