]> git.karo-electronics.de Git - linux-beck.git/commit
efi/efi_test: Use memdup_user() as a cleanup
authorIvan Hu <ivan.hu@canonical.com>
Tue, 18 Oct 2016 14:33:16 +0000 (15:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 18 Oct 2016 15:11:19 +0000 (17:11 +0200)
commitc208ed916e587048ba6b69840d08324100d7d325
treec4292e1a753f797c7e6539753ece5320a6821e7c
parent9c30a2199311df9a1f25d0586c96dfbb7e876cdf
efi/efi_test: Use memdup_user() as a cleanup

Fix coccicheck warning which recommends to use memdup_user().

This patch fixes the following coccicheck warnings:

  drivers/firmware/efi/test/efi_test.c:269:8-15: WARNING opportunity for memdup_user

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20161018143318.15673-7-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/test/efi_test.c