mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 09:30:53 +07:00
Char: nozomi, use GFP_KERNEL for kfifo allocation
The allocation was moved to probe function in 9842c38e91
. And we can
sleep there. So allocate the 4*8192 bytes as GFP_KERNEL to mitigate
the allocation failure.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Tested-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b1c43f82c5
commit
c29bd8d89c
@ -1431,8 +1431,8 @@ static int __devinit nozomi_card_init(struct pci_dev *pdev,
|
||||
}
|
||||
|
||||
for (i = PORT_MDM; i < MAX_PORT; i++) {
|
||||
if (kfifo_alloc(&dc->port[i].fifo_ul,
|
||||
FIFO_BUFFER_SIZE_UL, GFP_ATOMIC)) {
|
||||
if (kfifo_alloc(&dc->port[i].fifo_ul, FIFO_BUFFER_SIZE_UL,
|
||||
GFP_KERNEL)) {
|
||||
dev_err(&pdev->dev,
|
||||
"Could not allocate kfifo buffer\n");
|
||||
ret = -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user