]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: make use of xenbus_read_unsigned() in xen-blkfront
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)
commit76de87ff901241cd07337a3693af0fd280ff3f67
tree3078bd7b490e540f68c237d933585722cc05285f
parent8a240a863f2d35b90728bf2be57b6b4d14258729
xen: make use of xenbus_read_unsigned() in xen-blkfront

Use xenbus_read_unsigned() instead of xenbus_scanf() when possible.
This requires to change the type of some reads from int to unsigned,
but these cases have been wrong before: negative values are not allowed
for the modified cases.

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 f27dc1ac56865c2cc43d0ec3110a2b4a95b04e1d)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Conflicts:
drivers/block/xen-blkfront.c
drivers/block/xen-blkfront.c