]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: make use of xenbus_read_unsigned() in xen-kbdfront
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)
commitd07a1e25f75fa16ea64bd4682dffef4e307791fe
treeec6f874e49305524ffaeac8b19e69f2005bef9a3
parent3436d7d07a8d6bcbc51570a58e148586ae783271
xen: make use of xenbus_read_unsigned() in xen-kbdfront

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

Cc: dmitry.torokhov@gmail.com
Cc: linux-input@vger.kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
OraBug: 25497392

(cherry picked from commit 81362c6f159dcb59fadd60927aa00497d715ca80)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/input/misc/xen-kbdfront.c