diff options
author | Kalle Valo <kvalo@codeaurora.org> | 2019-10-03 16:39:51 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-10-03 16:39:51 +0300 |
commit | 97ef12263fce2835dfbc01d1d86b8c5fd711712f (patch) | |
tree | 6226c3e297442c6f168f10a18a163e620c70cda0 /drivers/net/wireless/ath/ar5523 | |
parent | 4a50d454502f1401171ff061a5424583f91266db (diff) | |
parent | 2c840676be8ffc624bf9bb4490d944fd13c02d71 (diff) | |
download | linux-97ef12263fce2835dfbc01d1d86b8c5fd711712f.tar.xz |
Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
ath.git patches for 5.5. Major changes:
ath10k
* add support for hardware rfkill on devices where firmware supports it
Diffstat (limited to 'drivers/net/wireless/ath/ar5523')
-rw-r--r-- | drivers/net/wireless/ath/ar5523/ar5523.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ar5523/ar5523.c b/drivers/net/wireless/ath/ar5523/ar5523.c index b94759daeacc..da2d179430ca 100644 --- a/drivers/net/wireless/ath/ar5523/ar5523.c +++ b/drivers/net/wireless/ath/ar5523/ar5523.c @@ -255,7 +255,8 @@ static int ar5523_cmd(struct ar5523 *ar, u32 code, const void *idata, if (flags & AR5523_CMD_FLAG_MAGIC) hdr->magic = cpu_to_be32(1 << 24); - memcpy(hdr + 1, idata, ilen); + if (ilen) + memcpy(hdr + 1, idata, ilen); cmd->odata = odata; cmd->olen = olen; |