netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 2/2] IRDA: Do cleanup for dma
  2008-05-29 10:34 ` David Miller
@ 2006-01-21  6:07   ` samuel
  2008-05-30  3:09     ` Wang Chen
  2008-05-30  9:44     ` David Miller
  2008-05-29 13:27   ` Jeff Garzik
  1 sibling, 2 replies; 7+ messages in thread
From: samuel @ 2006-01-21  6:07 UTC (permalink / raw)
  To: David Miller; +Cc: wangchen, jgarzik, netdev


Hi Dave,



On Thu, 29 May 2008 03:34:42 -0700 (PDT), David Miller

<davem@davemloft.net> wrote:

> From: Wang Chen <wangchen@cn.fujitsu.com>

> Date: Fri, 23 May 2008 13:57:19 +0800

> 

>> 1. dma should be freed when dma2 request fail.

>> 2. dma2 should be freed too when device close.

>>

>> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>

> 

> Jeff, did you get this or would you like me to pick

> it up directly?

I'll take it and send it along with my next IrDA patch set.



Cheers,

Samuel.





> Thanks.

> --

> To unsubscribe from this list: send the line "unsubscribe netdev" in

> the body of a message to majordomo@vger.kernel.org

> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

* [PATCH 2/2] IRDA: Do cleanup for dma
@ 2008-05-23  5:57 Wang Chen
  2008-05-29 10:34 ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Wang Chen @ 2008-05-23  5:57 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: NETDEV, David S. Miller

1. dma should be freed when dma2 request fail.
2. dma2 should be freed too when device close.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
---
 drivers/net/irda/via-ircc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/irda/via-ircc.c b/drivers/net/irda/via-ircc.c
index 58e1287..04ad357 100644
--- a/drivers/net/irda/via-ircc.c
+++ b/drivers/net/irda/via-ircc.c
@@ -1546,6 +1546,7 @@ static int via_ircc_net_open(struct net_device *dev)
 			IRDA_WARNING("%s, unable to allocate dma2=%d\n",
 				     driver_name, self->io.dma2);
 			free_irq(self->io.irq, self);
+			free_dma(self->io.dma);
 			return -EAGAIN;
 		}
 	}
@@ -1606,6 +1607,8 @@ static int via_ircc_net_close(struct net_device *dev)
 	EnAllInt(iobase, OFF);
 	free_irq(self->io.irq, dev);
 	free_dma(self->io.dma);
+	if (self->io.dma2 != self->io.dma)
+		free_dma(self->io.dma2);
 
 	return 0;
 }
-- 
1.5.4.rc3


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

* Re: [PATCH 2/2] IRDA: Do cleanup for dma
  2008-05-23  5:57 [PATCH 2/2] IRDA: Do cleanup for dma Wang Chen
@ 2008-05-29 10:34 ` David Miller
  2006-01-21  6:07   ` samuel
  2008-05-29 13:27   ` Jeff Garzik
  0 siblings, 2 replies; 7+ messages in thread
From: David Miller @ 2008-05-29 10:34 UTC (permalink / raw)
  To: wangchen; +Cc: jgarzik, netdev

From: Wang Chen <wangchen@cn.fujitsu.com>
Date: Fri, 23 May 2008 13:57:19 +0800

> 1. dma should be freed when dma2 request fail.
> 2. dma2 should be freed too when device close.
> 
> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>

Jeff, did you get this or would you like me to pick
it up directly?

Thanks.

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

* Re: [PATCH 2/2] IRDA: Do cleanup for dma
  2008-05-29 10:34 ` David Miller
  2006-01-21  6:07   ` samuel
@ 2008-05-29 13:27   ` Jeff Garzik
  2008-05-30  9:44     ` David Miller
  1 sibling, 1 reply; 7+ messages in thread
From: Jeff Garzik @ 2008-05-29 13:27 UTC (permalink / raw)
  To: David Miller; +Cc: wangchen, netdev

David Miller wrote:
> From: Wang Chen <wangchen@cn.fujitsu.com>
> Date: Fri, 23 May 2008 13:57:19 +0800
> 
>> 1. dma should be freed when dma2 request fail.
>> 2. dma2 should be freed too when device close.
>>
>> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
> 
> Jeff, did you get this or would you like me to pick
> it up directly?

I never pick up IRDA stuff.

	Jeff




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

* Re: [PATCH 2/2] IRDA: Do cleanup for dma
  2006-01-21  6:07   ` samuel
@ 2008-05-30  3:09     ` Wang Chen
  2008-05-30  9:44     ` David Miller
  1 sibling, 0 replies; 7+ messages in thread
From: Wang Chen @ 2008-05-30  3:09 UTC (permalink / raw)
  To: samuel; +Cc: David Miller, jgarzik, netdev

samuel@sortiz.org said the following on 2006-1-21 14:07:
>>> 1. dma should be freed when dma2 request fail.
>>> 2. dma2 should be freed too when device close.
>>>
>>> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
>> Jeff, did you get this or would you like me to pick
>> it up directly?
> I'll take it and send it along with my next IrDA patch set.
> 

oops, sorry. 
Seems that not all of the drivers/net/* fixes should be sent
to Jeff.
I will check MAINTAINERS more carefully next time.

--WCN


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

* Re: [PATCH 2/2] IRDA: Do cleanup for dma
  2008-05-29 13:27   ` Jeff Garzik
@ 2008-05-30  9:44     ` David Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David Miller @ 2008-05-30  9:44 UTC (permalink / raw)
  To: jgarzik; +Cc: wangchen, netdev

From: Jeff Garzik <jgarzik@pobox.com>
Date: Thu, 29 May 2008 09:27:21 -0400

> David Miller wrote:
> > From: Wang Chen <wangchen@cn.fujitsu.com>
> > Date: Fri, 23 May 2008 13:57:19 +0800
> > 
> >> 1. dma should be freed when dma2 request fail.
> >> 2. dma2 should be freed too when device close.
> >>
> >> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
> > 
> > Jeff, did you get this or would you like me to pick
> > it up directly?
> 
> I never pick up IRDA stuff.

Great I'll apply it then.

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

* Re: [PATCH 2/2] IRDA: Do cleanup for dma
  2006-01-21  6:07   ` samuel
  2008-05-30  3:09     ` Wang Chen
@ 2008-05-30  9:44     ` David Miller
  1 sibling, 0 replies; 7+ messages in thread
From: David Miller @ 2008-05-30  9:44 UTC (permalink / raw)
  To: samuel; +Cc: wangchen, jgarzik, netdev

From: <samuel@sortiz.org>
Date: Sat, 21 Jan 2006 07:07:16 +0100

> 
> Hi Dave,
> 
> On Thu, 29 May 2008 03:34:42 -0700 (PDT), David Miller
> <davem@davemloft.net> wrote:
> > From: Wang Chen <wangchen@cn.fujitsu.com>
> > Date: Fri, 23 May 2008 13:57:19 +0800
> > 
> >> 1. dma should be freed when dma2 request fail.
> >> 2. dma2 should be freed too when device close.
> >>
> >> Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
> > 
> > Jeff, did you get this or would you like me to pick
> > it up directly?
> I'll take it and send it along with my next IrDA patch set.

Oh ok, you got it :-)

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

end of thread, other threads:[~2008-05-30  9:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23  5:57 [PATCH 2/2] IRDA: Do cleanup for dma Wang Chen
2008-05-29 10:34 ` David Miller
2006-01-21  6:07   ` samuel
2008-05-30  3:09     ` Wang Chen
2008-05-30  9:44     ` David Miller
2008-05-29 13:27   ` Jeff Garzik
2008-05-30  9:44     ` David Miller

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).