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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:09:23 +0000 (13:09 +0000)
commita5692f6bb1f5b9b12e38bbbd75b212523bcdf247
tree67a64ca1544981b004037867dfd91de1de27bce1
parent6d01f35ead8edcc1c4c0fb926ceddd84f60f2a0c
vTPM: set virtual device before passing to ibmvtpm_reset_crq

commit 9d75f08946e8485109458ccf16f714697c207f41 upstream.

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>
Fixes: 132f76294744 ("drivers/char/tpm: Add new device driver to support IBM vTPM")
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm_ibmvtpm.c