linux-stable/drivers
Arnd Bergmann 0cc17a7a32 ath10k: avoid possible string overflow
commit 6707ba0105 upstream.

The way that 'strncat' is used here raised a warning in gcc-8:

drivers/net/wireless/ath/ath10k/wmi.c: In function 'ath10k_wmi_tpc_stats_final_disp_tables':
drivers/net/wireless/ath/ath10k/wmi.c:4649:4: error: 'strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]

Effectively, this is simply a strcat() but the use of strncat() suggests
some form of overflow check. Regardless of whether this might actually
overflow, using strlcat() instead of strncat() avoids the warning and
makes the code more robust.

Fixes: bc64d05220 ("ath10k: debugfs support to get final TPC stats for 10.4 variants")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-27 14:13:56 +09:00
..
accessibility
acpi nfit: acpi_nfit_ctl(): Check out_obj->type in the right place 2019-03-23 14:35:24 +01:00
amba
android binder: fix race that allows malicious free of live buffer 2018-12-05 19:41:26 +01:00
ata sata_rcar: fix deferred probing 2019-02-12 19:46:03 +01:00
atm atm: he: fix sign-extension overflow on large shift 2019-02-27 10:08:05 +01:00
auxdisplay auxdisplay: ht16k33: fix potential user-after-free on module unload 2019-03-23 14:35:13 +01:00
base PM / wakeup: Rework wakeup source timer cancellation 2019-03-23 14:35:29 +01:00
bcma
block floppy: check_events callback should not return a negative number 2019-03-23 14:35:12 +01:00
bluetooth Bluetooth: hci_ldisc: Postpone HCI_UART_PROTO_READY bit set in hci_uart_set_proto() 2019-03-27 14:13:53 +09:00
bus bus: arm-cci: remove unnecessary unreachable() 2018-12-01 09:42:49 +01:00
cdrom gdrom: fix a memory leak bug 2019-02-12 19:46:09 +01:00
char tpm: Unify the send callback behaviour 2019-03-23 14:35:30 +01:00
clk clk: ingenic: Fix doc of ingenic_cgu_div_info 2019-03-23 14:35:23 +01:00
clocksource clocksource/drivers/exynos_mct: Clear timer interrupt when shutdown 2019-03-23 14:35:20 +01:00
connector
cpufreq cpufreq: pxa2xx: remove incorrect __init annotation 2019-03-23 14:35:22 +01:00
cpuidle cpuidle: big.LITTLE: fix refcount leak 2019-02-12 19:46:03 +01:00
crypto crypto: rockchip - update new iv to device in multiple operations 2019-03-23 14:35:10 +01:00
dax
dca
devfreq
dio
dma dmaengine: dmatest: Abort test in case of mapping error 2019-03-13 14:03:21 -07:00
dma-buf
edac EDAC, skx_edac: Fix logical channel intermediate decoding 2018-11-13 11:15:06 -08:00
eisa
extcon
firewire
firmware iscsi_ibft: Fix missing break in switch statement 2019-03-13 14:03:22 -07:00
fmc
fpga fpga: altera-cvp: Fix registration for CvP incapable devices 2019-02-12 19:45:58 +01:00
fsi
gpio gpio: vf610: Mask all GPIO interrupts 2019-03-13 14:03:13 -07:00
gpu drm: Reorder set_property_atomic to avoid returning with an active ww_ctx 2019-03-27 14:13:54 +09:00
hid HID: debug: fix the ring buffer implementation 2019-02-15 08:09:13 +01:00
hsi
hv Drivers: hv: vmbus: Check for ring when getting debug info 2019-01-31 08:13:44 +01:00
hwmon hwmon: (tmp421) Correct the misspelling of the tmp442 compatible attribute in OF device ID table 2019-02-27 10:08:05 +01:00
hwspinlock
hwtracing intel_th: Don't reference unassigned outputs 2019-03-23 14:35:24 +01:00
i2c i2c: tegra: fix maximum transfer size 2019-03-23 14:35:25 +01:00
ide ide: pmac: add of_node_put() 2018-12-21 14:13:14 +01:00
idle
iio iio: adc: exynos-adc: Fix NULL pointer exception on unbind 2019-03-23 14:35:09 +01:00
infiniband IB/hfi1: Close race condition on user context disable and close 2019-03-23 14:35:23 +01:00
input Input: st-keyscan - fix potential zalloc NULL dereference 2019-03-23 14:35:13 +01:00
iommu iommu/amd: fix sg->dma_address for sg->offset bigger than PAGE_SIZE 2019-03-27 14:13:51 +09:00
ipack
irqchip irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table 2019-03-23 14:35:22 +01:00
isdn isdn: avm: Fix string plus integer warning from Clang 2019-02-27 10:08:06 +01:00
leds leds: lp5523: fix a missing check of return value of lp55xx_read 2019-02-27 10:08:05 +01:00
lightnvm lightnvm: pblk: fix two sleep-in-atomic-context bugs 2018-11-13 11:14:52 -08:00
macintosh
mailbox mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue 2019-03-23 14:35:15 +01:00
mcb
md md: Fix failed allocation of md_register_thread 2019-03-23 14:35:30 +01:00
media media: v4l2-ctrls.c/uvc: zero v4l2_event 2019-03-27 14:13:53 +09:00
memory
memstick memstick: Prevent memstick host from getting runtime suspended during card detection 2019-02-12 19:46:04 +01:00
message
mfd mfd: mc13xxx: Fix a missing check of a register-read failure 2019-02-27 10:08:03 +01:00
misc cxl: Wrap iterations over afu slices inside 'afu_list_lock' 2019-03-23 14:35:23 +01:00
mmc mmc: pxamci: fix enum type confusion 2019-03-27 14:13:51 +09:00
mtd mtd: rawnand: gpmi: fix MX28 bus master lockup problem 2019-02-15 08:09:11 +01:00
mux
net ath10k: avoid possible string overflow 2019-03-27 14:13:56 +09:00
nfc NFC: nfcmrvl_uart: fix OF child-node lookup 2018-12-01 09:42:54 +01:00
ntb
nubus
nvdimm libnvdimm: Fix altmap reservation size calculation 2019-03-23 14:35:18 +01:00
nvme nvme-pci: use the same attributes when freeing host_mem_desc_bufs. 2019-02-20 10:20:50 +01:00
nvmem
of OF: properties: add missing of_node_put 2019-01-23 08:09:49 +01:00
oprofile
parisc
parport parport_pc: fix find_superio io compare code, should use equal test. 2019-03-23 14:35:24 +01:00
pci PCI: endpoint: Use EPC's device in dma_alloc_coherent()/dma_free_coherent() 2019-03-27 14:13:55 +09:00
pcmcia pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges 2018-11-13 11:14:46 -08:00
perf arm64: perf: Reject stand-alone CHAIN events for PMUv3 2018-10-18 09:16:24 +02:00
phy phy: tegra: remove redundant self assignment of 'map' 2019-02-27 10:08:09 +01:00
pinctrl pinctrl: meson: meson8b: fix the sdxc_a data 1..3 pins 2019-03-23 14:35:14 +01:00
platform platform/x86: Fix unmet dependency warning for SAMSUNG_Q10 2019-03-13 14:03:15 -07:00
pnp
power power: supply: charger-manager: Fix incorrect return value 2019-03-27 14:13:55 +09:00
powercap
pps
ps3
ptp ptp: Fix pass zero to ERR_PTR() in ptp_clock_register 2019-02-12 19:45:59 +01:00
pwm
rapidio
ras
regulator regulator: s2mpa01: Fix step values for some LDOs 2019-03-23 14:35:19 +01:00
remoteproc
reset reset: make device_reset_optional() really optional 2018-12-08 13:03:40 +01:00
rpmsg rpmsg: smd: fix memory leak on channel create 2018-11-13 11:15:12 -08:00
rtc rtc: Fix overflow when converting time64_t to rtc_time 2019-03-27 14:13:55 +09:00
s390 s390/virtio: handle find on invalid queue gracefully 2019-03-23 14:35:20 +01:00
sbus drivers/sbus/char: add of_node_put() 2018-12-21 14:13:13 +01:00
scsi scsi: ufs: fix wrong command type of UTRD for UFSHCI v2.1 2019-03-27 14:13:55 +09:00
sfi
sh
sn
soc soc: fsl: qbman: avoid race in clearing QMan interrupt 2019-03-13 14:03:19 -07:00
spi spi: pxa2xx: Setup maximum supported DMA transfer length 2019-03-23 14:35:19 +01:00
spmi
ssb
staging media: imx: csi: Stop upstream before disabling IDMA channel 2019-03-23 14:35:31 +01:00
target scsi: target/iscsi: Avoid iscsit_release_commands_from_conn() deadlock 2019-03-23 14:35:20 +01:00
tc TC: Set DMA masks for devices 2018-11-13 11:15:11 -08:00
tee
thermal drivers: thermal: int340x_thermal: Fix sysfs race condition 2019-03-05 17:58:00 +01:00
thunderbolt
tty serial: 8250_pci: Have ACCES cards that use the four port Pericom PI7C9X7954 chip use the pci_pericom_setup() 2019-03-23 14:35:25 +01:00
uio Revert "uio: use request_threaded_irq instead" 2019-02-15 08:09:14 +01:00
usb USB: core: only clean up what we allocated 2019-03-27 14:13:55 +09:00
uwb
vfio
vhost vhost/vsock: fix vhost vsock cid hashing inconsistent 2019-03-19 13:13:25 +01:00
video pwm-backlight: Enable/disable the PWM before/after LCD enable toggle. 2019-03-27 14:13:55 +09:00
virt
virtio virtio_balloon: fix increment of vb->num_pfns in fill_balloon() 2018-10-13 09:27:30 +02:00
vlynq
vme
w1 w1: omap-hdq: fix missing bus unregister at removal 2018-11-13 11:15:09 -08:00
watchdog watchdog: renesas_wdt: don't set divider while watchdog is running 2019-02-12 19:46:03 +01:00
xen xen/pvcalls: remove set but not used variable 'intf' 2019-02-27 10:08:03 +01:00
zorro
Kconfig
Makefile