Commit 2e86e384 authored by Julia Lawall's avatar Julia Lawall Committed by Greg Kroah-Hartman
Browse files

iommu/virtio: Reverse arguments to list_add



commit fb3637a1 upstream.

Elsewhere in the file, there is a list_for_each_entry with
&vdev->resv_regions as the second argument, suggesting that
&vdev->resv_regions is the list head.  So exchange the
arguments on the list_add call to put the list head in the
second argument.

Fixes: 2a5a3148 ("iommu/virtio: Add probe request")
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Reviewed-by: default avatarJean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/1588704467-13431-1-git-send-email-Julia.Lawall@inria.fr


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 1a31c445
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment