linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Cho <tony.cho@atmel.com>
To: Nicolas Ferre <nicolas.ferre@atmel.com>, <leo.kim@atmel.com>
Cc: <gregkh@linuxfoundation.org>, <devel@driverdev.osuosl.org>,
	<linux-wireless@vger.kernel.org>, <johnny.kim@atmel.com>,
	<chris.park@atmel.com>, <rachel.kim@atmel.com>,
	<glen.lee@atmel.com>, <austin.shin@atmel.com>,
	<adel.noureldin@atmel.com>, <adham.abozaeid@atmel.com>
Subject: Re: [PATCH 1/4] staging: wilc1000: Modify null check routine
Date: Thu, 17 Sep 2015 18:31:28 +0900	[thread overview]
Message-ID: <55FA8870.4080301@atmel.com> (raw)
In-Reply-To: <55FA8299.5060606@atmel.com>



On 2015년 09월 17일 18:06, Nicolas Ferre wrote:
> Le 17/09/2015 10:50, Tony Cho a écrit :
>> From: Leo Kim <leo.kim@atmel.com>
>>
>> This patch modify null check routine.
>> - Null check error non return. (Handle_RcvdGnrlAsyncInfo)
> It doesn't parse...
>
> Is it fixing a bug? What were the consequences without the return?
>
> Bye,

I think commit log is not enough to explain what this commit is.

I will resend this series of patch as v2. do you have any concern?
Thanks,
Tony.


Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
---
  drivers/staging/wilc1000/host_interface.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 6fdf392..a9eaa8f 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -2403,8 +2403,10 @@ static s32 Handle_RcvdGnrlAsyncInfo(tstrWILC_WFIDrv *drvHandler, tstrRcvdGnrlAsy
  	s32 s32Err = 0;
  	tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *) drvHandler;
  
-	if (pstrWFIDrv == NULL)
+	if (!pstrWFIDrv) {
  		PRINT_ER("Driver handler is NULL\n");
+		return -EFAULT;
+	}
  	PRINT_D(GENERIC_DBG, "Current State = %d,Received state = %d\n", pstrWFIDrv->enuHostIFstate,
  		pstrRcvdGnrlAsyncInfo->pu8Buffer[7]);
  

>


      reply	other threads:[~2015-09-17  9:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-17  8:50 [PATCH 1/4] staging: wilc1000: Modify null check routine Tony Cho
2015-09-17  8:50 ` [PATCH 2/4] staging: wilc1000: remove warnings on the multiple blank lines uses Tony Cho
2015-09-17  8:50 ` [PATCH 3/4] staging: wilc1000: remove warnings line over 80 characters Tony Cho
2015-09-17  8:50 ` [PATCH 4/4] staging: wilc1000: wilc_wlan_if.h align defines Tony Cho
2015-09-17  9:06 ` [PATCH 1/4] staging: wilc1000: Modify null check routine Nicolas Ferre
2015-09-17  9:31   ` Tony Cho [this message]

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=55FA8870.4080301@atmel.com \
    --to=tony.cho@atmel.com \
    --cc=adel.noureldin@atmel.com \
    --cc=adham.abozaeid@atmel.com \
    --cc=austin.shin@atmel.com \
    --cc=chris.park@atmel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=glen.lee@atmel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=johnny.kim@atmel.com \
    --cc=leo.kim@atmel.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nicolas.ferre@atmel.com \
    --cc=rachel.kim@atmel.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;
as well as URLs for NNTP newsgroup(s).