Re: [PATCH -next] KEYS: trusted: Switch to kmemdup_nul()

2021-04-04 Thread Jarkko Sakkinen
On Fri, Apr 02, 2021 at 05:23:46PM +0800, Yang Yingliang wrote: > Use kmemdup_nul() helper instead of open-coding to > simplify the code. > > Reported-by: Hulk Robot > Signed-off-by: Yang Yingliang > --- > security/keys/trusted-keys/trusted_tpm1.c | 4 +--- > 1 file changed, 1 insertion(+), 3 d

[PATCH -next] KEYS: trusted: Switch to kmemdup_nul()

2021-04-02 Thread Yang Yingliang
Use kmemdup_nul() helper instead of open-coding to simplify the code. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- security/keys/trusted-keys/trusted_tpm1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/security/keys/trusted-keys/trusted_tpm1.c b/security/