summaryrefslogtreecommitdiff
path: root/.mailmap
diff options
context:
space:
mode:
authorHon Ching (Vicky) Lo <honclo@linux.vnet.ibm.com>2014-11-30 15:01:28 +0100
committerPeter Huewe <peterhuewe@gmx.de>2015-01-17 14:00:06 +0100
commit84eb186bc37c0900b53077ca21cf6dd15823a232 (patch)
tree3379b75da7caacd78bccbfba5b7ccef398cae6df /.mailmap
parent448e9c55c12d6bd4fa90a7e31d802e045666d7c8 (diff)
tpm: Fix NULL return in tpm_ibmvtpm_get_desired_dma
There was an oops in tpm_ibmvtpm_get_desired_dma, which caused kernel panic during boot when vTPM is enabled in Power partition configured in AMS mode. vio_bus_probe calls vio_cmo_bus_probe which calls tpm_ibmvtpm_get_desired_dma to get the size needed for DMA allocation. The problem is, vio_cmo_bus_probe is called before calling probe, which for vtpm is tpm_ibmvtpm_probe and it's this function that initializes and sets up vtpm's CRQ and gets required data values. Therefore, since this has not yet been done, NULL is returned in attempt to get the size for DMA allocation. We added a NULL check. In addition, a default buffer size will be set when NULL is returned. Cc: <stable@vger.kernel.org> Signed-off-by: Hon Ching (Vicky) Lo <honclo@linux.vnet.ibm.com> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions