Skip to content

Commit

Permalink
nvme: fix breakage on UEK7 U3 caused by mlx5 update
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Brennan <[email protected]>
  • Loading branch information
brenns10 committed Oct 11, 2024
1 parent 60f1bfc commit 49b47c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drgn_tools/nvme.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,12 @@ def for_each_msi_desc(pdev: Object) -> Iterable[Object]:
# structure.
list = pdev.dev.msi.data.list

if list is not None:
# Unfortunately, some of the commits below (which switch to an xarray) have
# been backported without deleting the list_heads above. This leaves a valid
# list in these structures, but with null next/prev fields. Detect NULL
# entries here and assume that's the case, falling through to the xarray
# case.
if list is not None and list.next:
return list_for_each_entry(
"struct msi_desc", list.address_of_(), "list"
)
Expand Down

0 comments on commit 49b47c1

Please sign in to comment.