vTPM: set virtual device before passing to ibmvtpm_reset_crq
authorHon Ching \(Vicky\) Lo <honclo@linux.vnet.ibm.com>
Fri, 22 May 2015 17:23:02 +0000 (13:23 -0400)
committerPeter Huewe <peterhuewe@gmx.de>
Tue, 16 Jun 2015 21:26:59 +0000 (23:26 +0200)
commit9d75f08946e8485109458ccf16f714697c207f41
treee9237b6ba6a5eca0fafa8c72143a8fcbe00e4bd1
parent84e3b420420e78babb5a981a91943f59bd156f21
vTPM: set virtual device before passing to ibmvtpm_reset_crq

tpm_ibmvtpm_probe() calls ibmvtpm_reset_crq(ibmvtpm) without having yet
set the virtual device in the ibmvtpm structure. So in ibmvtpm_reset_crq,
the phype call contains empty unit addresses, ibmvtpm->vdev->unit_address.

Signed-off-by: Hon Ching(Vicky) Lo <honclo@linux.vnet.ibm.com>
Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Reviewed-by: Ashley Lai <ashley@ahsleylai.com>
Cc: <stable@vger.kernel.org>
Fixes: 132f76294744 ("drivers/char/tpm: Add new device driver to support IBM vTPM")
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_ibmvtpm.c