]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: use GFP_ATOMIC under spinlock
authorMichael Straube <straube.linux@gmail.com>
Mon, 8 Nov 2021 10:55:37 +0000 (11:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Nov 2021 09:23:16 +0000 (10:23 +0100)
commitb7ab9cfa2efa8c7ae58be67e62077eef92401959
treefd7c0a5f02176c2fc3340cf069425564e20b0fc7
parentb2062add2ac6e5c821b9abba831490701ba46cce
staging: r8188eu: use GFP_ATOMIC under spinlock

In function rtw_report_sec_ie() kzalloc() is called under a spinlock,
so the allocation have to be atomic.

Call tree:

-> rtw_select_and_join_from_scanned_queue() <- takes a spinlock
   -> rtw_joinbss_cmd()
      -> rtw_restruct_sec_ie()
         -> rtw_report_sec_ie()

Fixes: 047efcd693a0 ("staging: r8188eu: introduce new os_dep dir for RTL8188eu driver")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20211108105537.31655-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/mlme_linux.c