brcmfmac: fix missing checks for kmemdup