[lkml]   [2017]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH 4.9 040/138] rtlwifi: fix uninitialized rtlhal->last_suspend_sec time
    4.9-stable review patch.  If anyone has any objections, please let me know.


    From: Arnd Bergmann <>

    commit 3f2a162fab15aee243178b5308bb5d1206fc4043 upstream.

    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.

    Signed-off-by: Arnd Bergmann <>
    Acked-by: Larry Finger <>
    Signed-off-by: Kalle Valo <>
    Signed-off-by: Greg Kroah-Hartman <>

    drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
    +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
    @@ -1378,6 +1378,7 @@ static void _rtl8821ae_get_wakeup_reason

    ppsc->wakeup_reason = 0;

    + do_gettimeofday(&ts);
    rtlhal->last_suspend_sec = ts.tv_sec;

    switch (fw_reason) {

     \ /
      Last update: 2017-11-28 12:59    [W:2.468 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site