]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: make use of xenbus_read_unsigned() in xen-pcifront
authorJuergen Gross <jgross@suse.com>
Mon, 31 Oct 2016 13:58:41 +0000 (14:58 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 20:55:28 +0000 (15:55 -0500)
commit485ca4bfcdf0bc186beea5ae3bdec93881884257
tree2d6d971eadb17c2c404dc8d53365533b5a4ab3d9
parentd9f6c8c6f64a96016ed129806566e91ddd286d06
xen: make use of xenbus_read_unsigned() in xen-pcifront

Use xenbus_read_unsigned() instead of xenbus_scanf() when possible.
This requires to change the type of the read from int to unsigned,
but this case has been wrong before: negative values are not allowed
for the modified case.

Cc: bhelgaas@google.com
Cc: linux-pci@vger.kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
OraBug: 25497392

(cherry picked from commit 58faf07b76817782ea20c392639569ea613cd439)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/pci/xen-pcifront.c