]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sun, 7 Apr 2019 12:58:43 +0000 (21:58 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Apr 2019 11:15:54 +0000 (13:15 +0200)
commitc49f238e070111a6f88abb8a0dfae35cad769000
tree27180baa308160e8b93ecad905dbf37dcd9178e3
parentf2222192a81799617a4e56fa41a75787901fc42b
staging: wilc1000: Avoid GFP_KERNEL allocation from atomic context.

Since wilc_set_multicast_list() is called with dev->addr_list_lock
spinlock held, we can't use GFP_KERNEL memory allocation.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: ddfec83781b5 ("staging: wilc1000: refactor code to avoid use of wilc_set_multicast_list global")
Cc: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Adham Abozaeid <adham.abozaeid@microchip.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_netdev.c