Re: [PATCH v2 1/2] net: ena: fix PHC cleanup on probe failure
From: Krzysztof Kozlowski
Date: Mon Sep 21 2026 - 18:02:52 EST
On 21/09/2026 21:06, Arthur Kiyanovski wrote:
> On Mon, 21 Sep 2026 23:42:01 +0800, Guangshuo Li <lgs201920130244@xxxxxxxxx> wrote:
>> ena_probe() initializes the PHC as part of ena_device_init(), but the
>> probe failure path does not destroy it before freeing the PHC private
>> data.
>>
>> The normal removal path calls ena_phc_destroy() through
>> ena_destroy_device() before ena_phc_free(). However, if probe fails
>> after ena_device_init() succeeds, the error path reaches ena_phc_free()
>
> This part:
>
>> without unregistering the PTP clock or destroying the device PHC
>> resources.
>
> is inaccurate, see my explanation bellow.
>
Don't waste your time. This is AI slop agent posting (one of 500 more of
postings where agent does not care about replies).
Best regards,
Krzysztof