Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1460187

[PATCH] rapidio: fix memdup_user.cocci warnings

From kbuild test robot <fengguang.wu@intel.com>
Newsgroups linux.kernel
Subject [PATCH] rapidio: fix memdup_user.cocci warnings
Date 2016-08-11 07:50 +0200
Message-ID <s4R2p-7bt-9@gated-at.bofh.it> (permalink)
References <s4R2p-7bt-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


drivers/rapidio/rio_cm.c:1849:7-14: 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: Alexandre Bounine <alexandre.bounine@idt.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 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)

) || ...)

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

drivers/rapidio/rio_cm.c:1849:7-14: WARNING opportunity for  memdup_user kbuild test robot <fengguang.wu@intel.com> - 2016-08-11 07:50 +0200
  [PATCH] rapidio: fix memdup_user.cocci warnings kbuild test robot <fengguang.wu@intel.com> - 2016-08-11 07:50 +0200

csiph-web