]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: make use of xenbus_read_unsigned() in xen-tpmfront
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)
commit3436d7d07a8d6bcbc51570a58e148586ae783271
treeb2876a8c6ce0e1efc63ebf7688449d5424e920b3
parent76de87ff901241cd07337a3693af0fd280ff3f67
xen: make use of xenbus_read_unsigned() in xen-tpmfront

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: peterhuewe@gmx.de
Cc: tpmdd@selhorst.net
Cc: jarkko.sakkinen@linux.intel.com
Cc: jgunthorpe@obsidianresearch.com
Cc: tpmdd-devel@lists.sourceforge.net
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
OraBug: 25497392

(cherry picked from commit 0240933469ea4cc1aa1c32867349c4aa718fe264)
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/char/tpm/xen-tpmfront.c