[PATCH] hv: util: fix memdup_user.cocci warnings

From: kbuild test robot
Date: Wed Sep 30 2015 - 05:24:58 EST

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@xxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>

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)

) || ...)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/