lkml.org 
[lkml]   [2015]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[PATCH] hv: util: fix memdup_user.cocci warnings
drivers/hv/hv_utils_transport.c:83:9-16: 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: Olaf Hering <olaf@aepfle.de>
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)

) || ...)


\
 
 \ /
  Last update: 2015-09-30 11:41    [W:0.324 / U:1.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site