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

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: tomi.valkeinen@ti.com
Cc: linux-fbdev@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 eaf46e181ec3cc3b6eafdbe8e30fb5a03ebbde68)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/video/fbdev/xen-fbfront.c