]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: make use of xenbus_read_unsigned() in xen-pciback
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:29 +0000 (15:55 -0500)
commitff4bdbdeef4eb5d88d7c98ddd8fc69579f8e3e0c
tree688a99a52e1ea002c3534c8aa1c6af5f9a710a33
parent58522fa8cefffba869b73cc1f6a9a1c6b011546f
xen: make use of xenbus_read_unsigned() in xen-pciback

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.

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

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