tpm: replace kmalloc() + memcpy() with kmemdup()
authorJi-Hun Kim <ji_hun.kim@samsung.com>
Wed, 9 May 2018 00:12:36 +0000 (09:12 +0900)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 14 May 2018 10:59:43 +0000 (13:59 +0300)
commit697989164ef699a01012490fa2dd1970b17828e6
tree6968eb8284bb51bef2142b31a0274161f9857173
parent8c81c24758ffbf17cf06c6835d361ffa57be2f0e
tpm: replace kmalloc() + memcpy() with kmemdup()

Use kmemdup rather than duplicating its implementation.

Signed-off-by: Ji-Hun Kim <ji_hun.kim@samsung.com>
Reviewed-by: James Morris <james.morris@microsoft.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/eventlog/of.c