]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: fix uninitialized rtlhal->last_suspend_sec time
authorArnd Bergmann <arnd@arndb.de>
Mon, 6 Nov 2017 13:55:35 +0000 (14:55 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 8 Nov 2017 12:33:04 +0000 (14:33 +0200)
commitc270f4dcb5e15d42dd19480a569ffccdc01af4c3
treeee7eeb8fb0566196a746c3b28a96bc94a2bab8b3
parent6cd394a33a892b99ef36a2758ab67411f6542562
rtlwifi: fix uninitialized rtlhal->last_suspend_sec time

We set rtlhal->last_suspend_sec to an uninitialized stack variable,
but unfortunately gcc never warned about this, I only found it
while working on another patch. I opened a gcc bug for this.

Presumably the value of rtlhal->last_suspend_sec is not all that
important, but it does get used, so we probably want the
patch backported to stable kernels.

Cc: stable@vger.kernel.org
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82839
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c