Thread (8 messages) 8 messages, 5 authors, 6d ago

Re: [PATCH v2 1/2] net: ena: fix PHC cleanup on probe failure

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2026-09-21 22:02:41
Also in: lkml, stable

On 21/09/2026 21:06, Arthur Kiyanovski wrote:
On Mon, 21 Sep 2026 23:42:01 +0800, Guangshuo Li [off-list ref] wrote:
quoted
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:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help