diff options
| author | Wajeeh Atrash <atrwajee@amazon.com> | 2026-11-15 13:42:40 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-11-17 17:33:29 -0800 |
| commit | c5e5ac57b559962498886435394b9cbcef20d553 (patch) | |
| tree | e0de00a8314335f470a6e060fdbb5c7f59a9bf9c /tools/perf/scripts/python | |
| parent | 6e9764591bcc34705d1c7bb13b31b7e161db4110 (diff) | |
net: ena: set admin device pointer before queue allocations
On the first probe, ena_com_admin_init() allocates the completion
contexts and admin SQ/CQ buffers before setting admin_queue->ena_dev.
Their allocation failure paths log through this pointer, which is
still NULL. A failed allocation therefore dereferences NULL instead
of returning -ENOMEM.
Set admin_queue->ena_dev before the first allocation so the helpers
can log errors and return -ENOMEM normally.
This issue has already been fixed in Amazon's standalone ENA driver
(commit 7d1dc4341d4f).
Fixes: da580ca8de2c ("net: ena: add device distinct log prefix to files")
Signed-off-by: Wajeeh Atrash <atrwajee@amazon.com>
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Link: https://patch.msgid.link/20261115114239.2308017-2-thnkslprpt@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
