]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/pciback: avoid multiple entries in slot list
authorJuergen Gross <jgross@suse.com>
Thu, 22 Sep 2016 08:45:40 +0000 (10:45 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:25 +0000 (15:55 -0500)
commit0de201f8b000d9b2511f340d09a3e784717505c3
tree649c052e20acfa246a72c699680130efbbf9a7f8
parent9f82bf9240f7fd91cc0a9f60c4d2fd096b07b360
xen/pciback: avoid multiple entries in slot list

The Xen pciback driver has a list of all pci devices it is ready to
seize. There is no check whether a to be added entry already exists.
While this might be no problem in the common case it might confuse
those which consume the list via sysfs.

Modify the handling of this list by not adding an entry which already
exists. As this will be needed later split out the list handling into
a separate function.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
OraBug: 25497392

(cherry picked from commit 9f8bee9c981f5fe7382a0615d117cc128dd22458)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xen-pciback/pci_stub.c