netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Oops in IFB
@ 2006-07-20 13:33 Nicolas DICHTEL
  2006-07-20 13:40 ` jamal
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas DICHTEL @ 2006-07-20 13:33 UTC (permalink / raw)
  To: netdev

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

Hi,

When there is no memory left for creating all IFB devices (requesting
by user), a oops happens on the system.
Please find enclosed a patch to solve this.


Regards,
Nicolas


[IFB] After ifb_init_one() failed, i is increased. Decrease
it before entering in the loop for freeing the other ifb devices.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>

[-- Attachment #2: x.diff --]
[-- Type: text/x-patch, Size: 274 bytes --]

--- a/drivers/net/ifb.c	2006-07-20 15:16:31.923529050 +0200
+++ b/drivers/net/ifb.c	2006-07-20 15:17:36.370188249 +0200
@@ -271,6 +271,7 @@
 	for (i = 0; i < numifbs && !err; i++)
 		err = ifb_init_one(i); 
 	if (err) { 
+		i--;
 		while (--i >= 0)
 			ifb_free_one(i);
 	}

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

end of thread, other threads:[~2006-07-20 23:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-20 13:33 Oops in IFB Nicolas DICHTEL
2006-07-20 13:40 ` jamal
2006-07-20 13:58   ` jamal
2006-07-20 14:29     ` Nicolas DICHTEL
2006-07-20 14:31       ` Nicolas DICHTEL
2006-07-20 23:17         ` David Miller
2006-07-20 23:16   ` 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).