]> git.karo-electronics.de Git - linux-beck.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)
committerJuergen Gross <jgross@suse.com>
Mon, 7 Nov 2016 12:55:11 +0000 (13:55 +0100)
commit0240933469ea4cc1aa1c32867349c4aa718fe264
tree2d49742a3fce70c41a68b29725053440cba4c35b
parentf27dc1ac56865c2cc43d0ec3110a2b4a95b04e1d
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>
drivers/char/tpm/xen-tpmfront.c