]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73e53e512f7fc0718dc40afacba95adf582acde7
treee9237b6ba6a5eca0fafa8c72143a8fcbe00e4bd1
parent5969a9a42250da52422f10d42314b7ad3a82df31
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: eed62dcbfe21 ("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