Re: [PATCH v3] brcmfmac: fix missing checks for kmemdup

From: Arend Van Spriel
Date: Fri Mar 15 2019 - 18:46:39 EST


On 3/15/2019 6:04 PM, Kangjie Lu wrote:
In case kmemdup fails, the fix sets conn_info->req_ie_len and
conn_info->resp_ie_len to zero to avoid buffer overflows.

Acked-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>
Signed-off-by: Kangjie Lu <kjlu@xxxxxxx>
---
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 4 ++++
1 file changed, 4 insertions(+)