ath10k: fix information leak in debugfs
authorVenkateswara Naralasetty <vnaralas@codeaurora.org>
Wed, 25 Apr 2018 08:36:40 +0000 (11:36 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 27 Apr 2018 11:24:25 +0000 (14:24 +0300)
commit2f177c1628c3f54cdfcc8093cd4b5297f4baeec4
tree6399bb34bb6c4ac5d1dc5a31c87251b2f7bb9f37
parent51c12756de427ee0ff90e2f00e121d2f5311c140
ath10k: fix information leak in debugfs

During write to some of debugfs in ath10k, few variables exposing stack
data when process user input. which leads to possible information leak.

This patch fix this issue by initializing buffer and checks
the return valure of 'simple_write_to_buffer'.

Signed-off-by: Venkateswara Naralasetty <vnaralas@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/debugfs_sta.c