* [efi:next 25/27] drivers/firmware/efi/test/efi_test.c:269:8-15: WARNING opportunity for memdup_user
@ 2016-09-05 18:18 kbuild test robot
[not found] ` <201609060241.wcHLKv2z%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2016-09-05 18:18 UTC (permalink / raw)
To: Ivan Hu
Cc: kbuild-all-JC7UmRfGjtg, linux-efi-u79uwXL29TY76Z2rM5mHXA,
Matt Fleming
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git next
head: daed0a8a36e7e0bc8eb76a53a4edce02d245cac1
commit: f8c1a021147e8d3a6ca5c3d86de44956a6b03168 [25/27] efi: Add efi_test driver for exporting UEFI runtime service interfaces
coccinelle warnings: (new ones prefixed by >>)
>> drivers/firmware/efi/test/efi_test.c:269:8-15: WARNING opportunity for memdup_user
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] efi: fix memdup_user.cocci warnings
[not found] ` <201609060241.wcHLKv2z%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2016-09-05 18:18 ` kbuild test robot
0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2016-09-05 18:18 UTC (permalink / raw)
To: Ivan Hu
Cc: kbuild-all-JC7UmRfGjtg, linux-efi-u79uwXL29TY76Z2rM5mHXA,
Matt Fleming
drivers/firmware/efi/test/efi_test.c:269:8-15: WARNING opportunity for memdup_user
Use memdup_user rather than duplicating its implementation
This is a little bit restricted to reduce false positives
Generated by: scripts/coccinelle/api/memdup_user.cocci
CC: Ivan Hu <ivan.hu-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
Signed-off-by: Fengguang Wu <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
0 files changed
rule starting on line 17: position variables or mixed modifs interfere with comm_assoc isobool (
(
(
(unknown *to == NULL)
>>> IS_ERR(rule starting on line 17:to)
|
!unknown *to
>>> IS_ERR(rule starting on line 17:to)
)
|
(unknown *NULL == unknown *to)
>>> IS_ERR(rule starting on line 17:to)
) || ...)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-05 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-05 18:18 [efi:next 25/27] drivers/firmware/efi/test/efi_test.c:269:8-15: WARNING opportunity for memdup_user kbuild test robot
[not found] ` <201609060241.wcHLKv2z%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-09-05 18:18 ` [PATCH] efi: fix memdup_user.cocci warnings kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox