From: Larry Finger Subject: [PATCH 0/2] Fixes for system freezes for r8188eu Date: Wed, 2 Jan 2019 20:12:45 -0600 Message-ID: <20190103021247.19367-1-Larry.Finger@lwfinger.net> Cc: netdev@vger.kernel.org, devel@driverdev.osuosl.org, Larry Finger , Michael Straube , Ivan Safonov To: gregkh@linuxfoundation.org Return-path: Received: from mail-ot1-f66.google.com ([209.85.210.66]:41963 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727571AbfACCNA (ORCPT ); Wed, 2 Jan 2019 21:13:00 -0500 Received: by mail-ot1-f66.google.com with SMTP id u16so28298131otk.8 for ; Wed, 02 Jan 2019 18:12:59 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: The driver issues "scheduling while atomic" messages and will freeze the system. These problems are due to attempting to dynamically load library encryption routines from a tasklet. The fixes are relatively simple. All that is needed is to replace indirect calls of the try_then_request_module() macro with a direct call to lib80211_get_crypto_ops(), which forces a load of the lib80211 module when the wifi driver is loaded. There will be a similar patch for TKIP encryption; however, the faulty patch has already been reverted, thus a fix to use the lib80211 routine directly will be more intrusive. My original attempt failed, thus I am delaying that fix. Cc: Michael Straube Cc: Ivan Safonov Signed-off-by: Larry Finger --- Larry Finger (2): staging: rtl8188eu: Fix module loading from tasklet for CCMP encryption staging: rtl8188eu: Fix module loading from tasklet for WEP encryption drivers/staging/rtl8188eu/core/rtw_security.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.16.4