]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerJuergen Gross <jgross@suse.com>
Mon, 7 Nov 2016 12:55:07 +0000 (13:55 +0100)
commit8235777b2068e3280b6fa1413f1940ade31f0adf
tree3a559cc5e59af90987bae75ee234371e33b5742c
parent9c53a1792a5e6c708897d0cb17f2a4509e499a52
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>
drivers/block/xen-blkback/xenbus.c