RE: [PATCH net] net: ethernet: microchip: lan743x: Fix skb allocation failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>-----Original Message-----
>From: Greg KH <greg@xxxxxxxxx>
>Sent: Wednesday, November 3, 2021 5:44 AM
>To: Yuiko Oshino - C18177 <Yuiko.Oshino@xxxxxxxxxxxxx>
>Cc: stable@xxxxxxxxxxxxxxx
>Subject: Re: [PATCH net] net: ethernet: microchip: lan743x: Fix skb allocation
>failure
>
>[You don't often get email from greg@xxxxxxxxx. Learn why this is important at
>http://aka.ms/LearnAboutSenderIdentification.]
>
>EXTERNAL EMAIL: Do not click links or open attachments unless you know the
>content is safe
>
>On Tue, Nov 02, 2021 at 10:14:27AM -0400, Yuiko Oshino wrote:
>> commit e8684db191e4164f3f5f3ad7dec04a6734c25f1c upstream.
>>
>> The driver allocates skb during ndo_open with GFP_ATOMIC which has high
>chance of failure when there are multiple instances.
>> GFP_KERNEL is enough while open and use GFP_ATOMIC only from interrupt
>context.
>>
>> Fixes: 23f0703c125b ("lan743x: Add main source files for new lan743x driver")
>> Signed-off-by: Yuiko Oshino <yuiko.oshino@xxxxxxxxxxxxx>
>> cc: <stable@xxxxxxxxxxxxxxx> # 5.4.x
>
>Now queued up, thanks.
>
>greg k-h

Thank you, Greg!

Yuiko




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux