All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] brcm80211: remove multiple calls to wl_release_fw
@ 2011-02-12 15:00 Stanislav Fomichev
  2011-02-14 19:59 ` Roland Vossen
  2011-02-18 20:57 ` Greg KH
  0 siblings, 2 replies; 9+ messages in thread
From: Stanislav Fomichev @ 2011-02-12 15:00 UTC (permalink / raw)
  To: brudley, gregkh; +Cc: linux-wireless

This causes an oops when the bcm43xx_hdr-0.fw binary is not found.

Signed-off-by: Stanislav Fomichev <s@fomichev.me>
---
 drivers/staging/brcm80211/sys/wl_mac80211.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/brcm80211/sys/wl_mac80211.c b/drivers/staging/brcm80211/sys/wl_mac80211.c
index cd8392b..5faa521 100644
--- a/drivers/staging/brcm80211/sys/wl_mac80211.c
+++ b/drivers/staging/brcm80211/sys/wl_mac80211.c
@@ -1767,7 +1767,6 @@ static int wl_request_fw(struct wl_info *wl, struct pci_dev *pdev)
 		if (status) {
 			printf("%s: fail to load firmware %s\n",
 				KBUILD_MODNAME, fw_name);
-			wl_release_fw(wl);
 			return status;
 		}
 		WL_NONE("request fw %s\n", fw_name);
@@ -1777,7 +1776,6 @@ static int wl_request_fw(struct wl_info *wl, struct pci_dev *pdev)
 		if (status) {
 			printf("%s: fail to load firmware %s\n",
 				KBUILD_MODNAME, fw_name);
-			wl_release_fw(wl);
 			return status;
 		}
 		wl->fw.hdr_num_entries[i] =
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] brcm80211: remove multiple calls to wl_release_fw
  2011-02-12 15:00 [PATCH] brcm80211: remove multiple calls to wl_release_fw Stanislav Fomichev
@ 2011-02-14 19:59 ` Roland Vossen
  2011-02-14 20:22   ` Dan Carpenter
  2011-02-18 20:57 ` Greg KH
  1 sibling, 1 reply; 9+ messages in thread
From: Roland Vossen @ 2011-02-14 19:59 UTC (permalink / raw)
  To: s, gregkh; +Cc: linux-wireless, devel

Hi Stanislav,

this patch is ok with me. For future patches, can you post to 
devel@linuxdriverproject.org since that is the main list for the 
brcm80211 driver ?

I will align yet unsubmitted patches having to do with firmware handling 
with your patch.

Thanks, Roland.

Reviewed-by: Roland Vossen <rvossen@broadcom.com>

On 02/12/2011 04:00 PM, Stanislav Fomichev wrote:
> This causes an oops when the bcm43xx_hdr-0.fw binary is not found.
>
> Signed-off-by: Stanislav Fomichev<s@fomichev.me>
> ---
>   drivers/staging/brcm80211/sys/wl_mac80211.c |    2 --
>   1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/brcm80211/sys/wl_mac80211.c b/drivers/staging/brcm80211/sys/wl_mac80211.c
> index cd8392b..5faa521 100644
> --- a/drivers/staging/brcm80211/sys/wl_mac80211.c
> +++ b/drivers/staging/brcm80211/sys/wl_mac80211.c
> @@ -1767,7 +1767,6 @@ static int wl_request_fw(struct wl_info *wl, struct pci_dev *pdev)
>   		if (status) {
>   			printf("%s: fail to load firmware %s\n",
>   				KBUILD_MODNAME, fw_name);
> -			wl_release_fw(wl);
>   			return status;
>   		}
>   		WL_NONE("request fw %s\n", fw_name);
> @@ -1777,7 +1776,6 @@ static int wl_request_fw(struct wl_info *wl, struct pci_dev *pdev)
>   		if (status) {
>   			printf("%s: fail to load firmware %s\n",
>   				KBUILD_MODNAME, fw_name);
> -			wl_release_fw(wl);
>   			return status;
>   		}
>   		wl->fw.hdr_num_entries[i] =



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] brcm80211: remove multiple calls to wl_release_fw
  2011-02-14 19:59 ` Roland Vossen
@ 2011-02-14 20:22   ` Dan Carpenter
  2011-02-14 20:40     ` Roland Vossen
  2011-02-14 21:07     ` Stanislav Fomichev
  0 siblings, 2 replies; 9+ messages in thread
From: Dan Carpenter @ 2011-02-14 20:22 UTC (permalink / raw)
  To: Roland Vossen; +Cc: s, gregkh, devel, linux-wireless

> On 02/12/2011 04:00 PM, Stanislav Fomichev wrote:
> >This causes an oops when the bcm43xx_hdr-0.fw binary is not found.
> >

This patch isn't right.  It fixes the oops but it introduces some leaks.
(We still need to release firmware that was allocated successfully).

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] brcm80211: remove multiple calls to wl_release_fw
  2011-02-14 20:22   ` Dan Carpenter
@ 2011-02-14 20:40     ` Roland Vossen
  2011-02-14 21:03       ` Stanislav Fomichev
  2011-02-14 21:07     ` Stanislav Fomichev
  1 sibling, 1 reply; 9+ messages in thread
From: Roland Vossen @ 2011-02-14 20:40 UTC (permalink / raw)
  To: Dan Carpenter, s; +Cc: gregkh, devel, linux-wireless

Hello Dan and Stanislav,

I already had a patch in the making that is a superset of Stanislav's 
patch. It fixes the leak issue. I agreed with Stanislav's patch since, I 
made the same (but: more) changes. Stanislav, can we agree that we wait 
for my patch (I plan on delivering this tomorrow) ?

Thanks, Roland.

On 02/14/2011 09:22 PM, Dan Carpenter wrote:
>> On 02/12/2011 04:00 PM, Stanislav Fomichev wrote:
>>> This causes an oops when the bcm43xx_hdr-0.fw binary is not found.
>>>
>
> This patch isn't right.  It fixes the oops but it introduces some leaks.
> (We still need to release firmware that was allocated successfully).
>
> regards,
> dan carpenter
>



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] brcm80211: remove multiple calls to wl_release_fw
  2011-02-14 20:40     ` Roland Vossen
@ 2011-02-14 21:03       ` Stanislav Fomichev
  0 siblings, 0 replies; 9+ messages in thread
From: Stanislav Fomichev @ 2011-02-14 21:03 UTC (permalink / raw)
  To: Roland Vossen; +Cc: Dan Carpenter, s, devel, gregkh, linux-wireless

Hi all,

> I already had a patch in the making that is a superset of
> Stanislav's patch. It fixes the leak issue. I agreed with
> Stanislav's patch since, I made the same (but: more) changes.
> Stanislav, can we agree that we wait for my patch (I plan on
> delivering this tomorrow) ?
It's alright with me. I just wanted to point out an error; so I can wait
for a better fix.

-- 
	Stas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] brcm80211: remove multiple calls to wl_release_fw
  2011-02-14 20:22   ` Dan Carpenter
  2011-02-14 20:40     ` Roland Vossen
@ 2011-02-14 21:07     ` Stanislav Fomichev
  2011-02-14 21:20       ` Dan Carpenter
  1 sibling, 1 reply; 9+ messages in thread
From: Stanislav Fomichev @ 2011-02-14 21:07 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: Roland Vossen, devel, gregkh, linux-wireless, s

> This patch isn't right.  It fixes the oops but it introduces some leaks.
> (We still need to release firmware that was allocated successfully).
Sorry Dan, but where do you see the leaks? We make a call to
wl_request_fw and if returns non-zero call wl_release_fw for a cleanup.

I just removed the call to wl_release_fw in the wl_request_fw itself; so
it should not introduce any leak.

Could you pls clarify?

-- 
	Stas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] brcm80211: remove multiple calls to wl_release_fw
  2011-02-14 21:07     ` Stanislav Fomichev
@ 2011-02-14 21:20       ` Dan Carpenter
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Carpenter @ 2011-02-14 21:20 UTC (permalink / raw)
  To: Roland Vossen, devel, gregkh, linux-wireless, s

On Tue, Feb 15, 2011 at 12:07:55AM +0300, Stanislav Fomichev wrote:
> > This patch isn't right.  It fixes the oops but it introduces some leaks.
> > (We still need to release firmware that was allocated successfully).
> Sorry Dan, but where do you see the leaks? We make a call to
> wl_request_fw and if returns non-zero call wl_release_fw for a cleanup.
> 
> I just removed the call to wl_release_fw in the wl_request_fw itself; so
> it should not introduce any leak.
> 
> Could you pls clarify?

Ah.  Right.  I see what you're saying.  Your patch looks good to me.

regards,
dan carpenter 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] brcm80211: remove multiple calls to wl_release_fw
  2011-02-12 15:00 [PATCH] brcm80211: remove multiple calls to wl_release_fw Stanislav Fomichev
  2011-02-14 19:59 ` Roland Vossen
@ 2011-02-18 20:57 ` Greg KH
  2011-02-19  9:03   ` Stanislav Fomichev
  1 sibling, 1 reply; 9+ messages in thread
From: Greg KH @ 2011-02-18 20:57 UTC (permalink / raw)
  To: Stanislav Fomichev, brudley, gregkh, linux-wireless

On Sat, Feb 12, 2011 at 06:00:33PM +0300, Stanislav Fomichev wrote:
> This causes an oops when the bcm43xx_hdr-0.fw binary is not found.
> 
> Signed-off-by: Stanislav Fomichev <s@fomichev.me>
> ---
>  drivers/staging/brcm80211/sys/wl_mac80211.c |    2 --

This doesn't apply on linux-next, what tree is it supposed to be for?

confused,

greg k-h

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] brcm80211: remove multiple calls to wl_release_fw
  2011-02-18 20:57 ` Greg KH
@ 2011-02-19  9:03   ` Stanislav Fomichev
  0 siblings, 0 replies; 9+ messages in thread
From: Stanislav Fomichev @ 2011-02-19  9:03 UTC (permalink / raw)
  To: Greg KH; +Cc: brudley, gregkh, linux-wireless

> This doesn't apply on linux-next, what tree is it supposed to be for?
I suppose it was based on the Linus's tree (I didn't know that the
developing is going on on this list).

Anyway, pls drop this patch; the similar fixes should be done in one of
the Roland Vossen's patches.

-- 
	Stas

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-02-19  9:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-12 15:00 [PATCH] brcm80211: remove multiple calls to wl_release_fw Stanislav Fomichev
2011-02-14 19:59 ` Roland Vossen
2011-02-14 20:22   ` Dan Carpenter
2011-02-14 20:40     ` Roland Vossen
2011-02-14 21:03       ` Stanislav Fomichev
2011-02-14 21:07     ` Stanislav Fomichev
2011-02-14 21:20       ` Dan Carpenter
2011-02-18 20:57 ` Greg KH
2011-02-19  9:03   ` Stanislav Fomichev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.