]> git.baikalelectronics.ru Git - kernel.git/commit
vTPM: fix memory allocation flag for rtce buffer at kernel boot
authorHon Ching \(Vicky\) Lo <honclo@linux.vnet.ibm.com>
Thu, 8 Oct 2015 00:11:51 +0000 (20:11 -0400)
committerPeter Huewe <peterhuewe@gmx.de>
Sun, 18 Oct 2015 23:00:49 +0000 (01:00 +0200)
commit990e0437b181f32eac205c1ee1dd73cb4a1c9fad
treee77cc93d980046a77258d13944ac191d38dec6eb
parent6008b1070c03b102bd7fed8e01f02a2662df061e
vTPM: fix memory allocation flag for rtce buffer at kernel boot

At ibm vtpm initialzation, tpm_ibmvtpm_probe() registers its interrupt
handler, ibmvtpm_interrupt, which calls ibmvtpm_crq_process to allocate
memory for rtce buffer.  The current code uses 'GFP_KERNEL' as the
type of kernel memory allocation, which resulted a warning at
kernel/lockdep.c.  This patch uses 'GFP_ATOMIC' instead so that the
allocation is high-priority and does not sleep.

Cc: stable@kernel.org
Signed-off-by: Hon Ching(Vicky) Lo <honclo@linux.vnet.ibm.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_ibmvtpm.c