Re: [PATCH 2.6.30-rc5] ehea: fix invalid pointer access

2009-05-05 Thread Hannes Hering
On Tuesday 05 May 2009 14:19:54 David Howells wrote: > In that case, you might want to move the prefetchw() calls in the following: > > pref = skb_array[x]; > - prefetchw(pref); > - prefetchw(pref + EHEA_CACHE_LINE); > + if (pref) { > +

Re: [PATCH 2.6.30-rc5] ehea: fix invalid pointer access

2009-05-05 Thread David Howells
Hannes Hering wrote: > this is an ehea driver problem, which is occuring when the receive queue runs > empty. The faulting code is more specifically the following line: > > pref = (skb_array[x]->data); In that case, you might want to move the prefetchw() calls in the following:

Re: [PATCH 2.6.30-rc5] ehea: fix invalid pointer access

2009-05-05 Thread Hannes Hering
On Tuesday 05 May 2009 11:11:27 David Howells wrote: > Hannes Hering wrote: > > > pref = skb_array[x]; > > - prefetchw(pref); > > - prefetchw(pref + EHEA_CACHE_LINE); > > + if (pref) { > > + prefetchw(pref); > > + prefetchw(pref + EHEA_CACHE_LINE); > > Ummm... Is p

Re: [PATCH 2.6.30-rc5] ehea: fix invalid pointer access

2009-05-05 Thread David Howells
Hannes Hering wrote: > pref = skb_array[x]; > - prefetchw(pref); > - prefetchw(pref + EHEA_CACHE_LINE); > + if (pref) { > + prefetchw(pref); > + prefetchw(pref + EHEA_CACHE_LINE); Ummm... Is prefetch() or prefetchw() faulting? David ___

Re: [PATCH 2.6.30-rc5] ehea: fix invalid pointer access

2009-05-04 Thread David Miller
From: Hannes Hering Date: Mon, 4 May 2009 18:02:30 +0200 > This patch fixes an invalid pointer access in case the receive queue holds no > pointer to the next skb when the queue is empty. > > Signed-off-by: Hannes Hering > Signed-off-by: Jan-Bernd Themann Applied, thanks.

[PATCH 2.6.30-rc5] ehea: fix invalid pointer access

2009-05-04 Thread Hannes Hering
This patch fixes an invalid pointer access in case the receive queue holds no pointer to the next skb when the queue is empty. Signed-off-by: Hannes Hering Signed-off-by: Jan-Bernd Themann --- diff -Nurp -X dontdiff linux-2.6.30-rc4/drivers/net/ehea/ehea.h patched_kernel/drivers/net/ehea/ehea.