xen/hvc: Fix error cases around HVM_PARAM_CONSOLE_PFN
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 23 May 2012 16:55:38 +0000 (12:55 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 24 May 2012 18:15:35 +0000 (14:15 -0400)
commita32c88b9386ce3df87f28dd46bdc3776cd6edf75
tree13c729ff691e972489f852dc005af39564c8d1e3
parent2e5ad6b9c45d43cc4e7b8ac5ded1c55a7c4a3893
xen/hvc: Fix error cases around HVM_PARAM_CONSOLE_PFN

We weren't resetting the parameter to be passed in to a
known default. Nor were we checking the return value of
hvm_get_parameter.

CC: stable@kernel.org
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/tty/hvc/hvc_xen.c