Re: [PATCH] RDMA/core: Fix swapped list_add_tail() arguments in ib_add_sub_device()
From: Leon Romanovsky
Date: Fri Sep 18 2026 - 08:50:00 EST
On Wed, 16 Sep 2026 14:44:35 +0800, lirongqing wrote:
> ib_add_sub_device() links a new sub-device into its parent's sub-device
> list with:
>
> list_add_tail(&parent->subdev_list_head, &sub->subdev_list);
>
> list_add_tail(new, head) expects the node to insert as the first
> argument and the list head as the second, so the call above does the
> opposite of what was intended: it treats the parent's list head as the
> new node and the sub-device's node as the list head.
>
> [...]
Applied, thanks!
[1/1] RDMA/core: Fix swapped list_add_tail() arguments in ib_add_sub_device()
https://git.kernel.org/rdma/rdma/c/fad7b0dcb0821c
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>