From mboxrd@z Thu Jan 1 00:00:00 1970 From: lkp@intel.com (kbuild test robot) Date: Wed, 28 Oct 2015 00:15:54 +0800 Subject: [PATCH] lightnvm: fix memdup_user.cocci warnings In-Reply-To: <1445957719-5368-2-git-send-email-m@bjorling.me> References: <201510280028.QgqMel7f%fengguang.wu@intel.com> Message-ID: <20151027161554.GA3884@lkp-ib03> drivers/lightnvm/core.c:657: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: Matias Bj?rling Signed-off-by: Fengguang Wu --- 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) ) || ...)