public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
To: "Dhere, Chaitanya (C.)" <cvijaydh@visteon.com>
Cc: "navin.patidar@gmail.com" <navin.patidar@gmail.com>,
	"vthakkar1994@gmail.com" <vthakkar1994@gmail.com>,
	"tapaswenipathak@gmail.com" <tapaswenipathak@gmail.com>,
	"dan.carpenter@oracle.com" <dan.carpenter@oracle.com>,
	"abelmoyo.ab@gmail.com" <abelmoyo.ab@gmail.com>,
	"devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Staging: rtl8188eu: Replaced kzalloc and memcpy combination with kmemdup
Date: Fri, 3 Apr 2015 15:40:42 +0200	[thread overview]
Message-ID: <20150403134042.GA31251@kroah.com> (raw)
In-Reply-To: <20150330151119.GA9797@chaitanya-Ideapad-Z560>

On Mon, Mar 30, 2015 at 03:11:25PM +0000, Dhere, Chaitanya (C.) wrote:
> This change was detected with the help of coccinelle tool.
> It performs the same function as kzalloc amd memcpy.
> 
> Signed-off-by: Chaitanya Dhere <cvijaydh@visteon.com>

Your From: line and this line don't match :(

> ---
>  drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
> index 86d955f..07ae6cf 100644
> --- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
> +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
> @@ -5431,15 +5431,14 @@ u8 set_tx_beacon_cmd(struct adapter *padapter)
>  		goto exit;
>  	}
>  
> -	ptxBeacon_parm = kzalloc(sizeof(struct wlan_bssid_ex), GFP_KERNEL);
> +	ptxBeacon_parm = kmemdup(&(pmlmeinfo->network),
> +				 sizeof(struct wlan_bssid_ex), GFP_KERNEL);
>  	if (ptxBeacon_parm == NULL) {
>  		kfree(ph2c);
>  		res = _FAIL;
>  		goto exit;
>  	}
>  
> -	memcpy(ptxBeacon_parm, &(pmlmeinfo->network), sizeof(struct wlan_bssid_ex));
> -
>  	len_diff = update_hidden_ssid(ptxBeacon_parm->IEs+_BEACON_IE_OFFSET_,
>  				      ptxBeacon_parm->IELength-_BEACON_IE_OFFSET_,
>  				      pmlmeinfo->hidden_ssid_mode);
> -- 
> 1.9.1

This patch fails to apply for some odd reason, the patch seems
corrupted.  Please look into your email client settings and try it
again.

thanks,

greg k-h

  reply	other threads:[~2015-04-03 13:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30 15:11 [PATCH] Staging: rtl8188eu: Replaced kzalloc and memcpy combination with kmemdup Dhere, Chaitanya (C.)
2015-04-03 13:40 ` gregkh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-04-07 14:25 Dhere, Chaitanya (C.)
2015-04-08  4:14 ` Sudip Mukherjee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150403134042.GA31251@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=abelmoyo.ab@gmail.com \
    --cc=cvijaydh@visteon.com \
    --cc=dan.carpenter@oracle.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=navin.patidar@gmail.com \
    --cc=tapaswenipathak@gmail.com \
    --cc=vthakkar1994@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox