linux/drivers/staging/rtl8188eu
Jia-Ju Bai 705f385849 rtl8188eu: Fix a possible sleep-in-atomic bug in set_tx_beacon_cmd
The driver may sleep under a spinlock.
The function call path is:
update_beacon (acquire the spinlock)
  update_BCNTIM
    set_tx_beacon_cmd
      kzalloc(GFP_KERNEL) --> may sleep
      kmemdup(GFP_KERNEL) --> may sleep

To fix it, GFP_KERNEL is replaced with GFP_ATOMIC.

This bug is found by my static analysis tool(DSAC) and checked by my code review.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-13 12:48:46 +01:00
..
core rtl8188eu: Fix a possible sleep-in-atomic bug in set_tx_beacon_cmd 2017-12-13 12:48:46 +01:00
hal Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
include Staging/IIO patches for 4.15-rc1 2017-11-13 20:53:28 -08:00
os_dep staging: rtl8188eu: Fix incorrect response to SIOCGIWESSID 2017-11-28 14:36:45 +01:00
Kconfig staging: rtl8188eu: force driver to be built as a module 2017-04-11 15:59:33 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
TODO