]> git.baikalelectronics.ru Git - kernel.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)
committerJuergen Gross <jgross@suse.com>
Mon, 7 Nov 2016 12:55:34 +0000 (13:55 +0100)
commit62421396e70654ae1fde34b1962cd1a25bef4dd7
tree8d0deb9c42e7411034b940f31e06b4b8c2310023
parentd82383f766a1b24c3cb59f26aae72029f7ef50ca
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>
drivers/xen/xen-pciback/xenbus.c