staging: r8188eu: scheduling in atomic in rtw_createbss_cmd()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 12 Aug 2021 06:58:52 +0000 (09:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 08:28:29 +0000 (10:28 +0200)
commit626520f4ba27d92c8caaf2d1f70c4bca4ea3f9de
tree4ff288b2a2aa1a9a121011141106a84e3ba119bc
parent0ea03f795df43643a932cd9ee809fdc7ecafa873
staging: r8188eu: scheduling in atomic in rtw_createbss_cmd()

A couple of the callers are holding spinlocks so this allocation has to
be atomic.  One spinlock is in rtw_set_802_11_connect() but the simpler
spinlock to review is when this function is called from
rtw_surveydone_event_callback().

Fixes: 15865124feed ("staging: r8188eu: introduce new core dir for RTL8188eu driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210812065852.GB31863@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_cmd.c