From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752904AbbIFTja (ORCPT ); Sun, 6 Sep 2015 15:39:30 -0400 Received: from mail-ob0-f181.google.com ([209.85.214.181]:35463 "EHLO mail-ob0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751695AbbIFTjX (ORCPT ); Sun, 6 Sep 2015 15:39:23 -0400 Subject: Re: [PATCH 3/3] Staging: rtl8192u: r8192U_core.c: Replace memcpy with eth_addr_copy To: Shraddha Barke , Greg Kroah-Hartman , Florian Schilhabel , Mateusz Kulikowski , Aya Mahfouz , Julia Lawall , Sudip Mukherjee , linux-kernel@vger.kernel.org References: <1441566274-3992-1-git-send-email-shraddha.6596@gmail.com> <1441566274-3992-3-git-send-email-shraddha.6596@gmail.com> From: Larry Finger Message-ID: <55EC9669.5@lwfinger.net> Date: Sun, 6 Sep 2015 14:39:21 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1441566274-3992-3-git-send-email-shraddha.6596@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/06/2015 02:04 PM, Shraddha Barke wrote: > This patch replaces memcpy with eth_addr_copy > > The changes were applied using the following coccinelle > rule: > @@ expression e1, e2; @@ > - memcpy(e1, e2, ETH_ALEN); > + ether_addr_copy(e1, e2); > > Signed-off-by: Shraddha Barke > --- > drivers/staging/rtl8192u/r8192U_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c > index 6f6fe38..577d3a4 100644 > --- a/drivers/staging/rtl8192u/r8192U_core.c > +++ b/drivers/staging/rtl8192u/r8192U_core.c > @@ -3430,7 +3430,7 @@ static int r8192_set_mac_adr(struct net_device *dev, void *mac) > > down(&priv->wx_sem); > > - memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); > + ether_addr_copy(dev->dev_addr, addr->sa_data); > > schedule_work(&priv->reset_wq); > up(&priv->wx_sem); > This patch has the same problems as do both patches 1 and 2. NACK. Larry