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

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

Cc: konrad.wilk@oracle.com
Cc: roger.pau@citrix.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
OraBug: 25497392

(cherry picked from commit 8235777b2068e3280b6fa1413f1940ade31f0adf)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/block/xen-blkback/xenbus.c