]> asedeno.scripts.mit.edu Git - linux.git/commit
tpm: replace kmalloc() + memcpy() with kmemdup()
authorJi-Hun Kim <ji_hun.kim@samsung.com>
Wed, 9 May 2018 00:12:37 +0000 (09:12 +0900)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 14 May 2018 10:59:52 +0000 (13:59 +0300)
commitf5495bb9aca4ccd46a14161bf2d9dd72c8b7166e
treea6e2a6a4b8000b1440779575501fa7a0e4adff82
parent697989164ef699a01012490fa2dd1970b17828e6
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.sakkine@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkine@linux.intel.com>
drivers/char/tpm/eventlog/efi.c