From: Nicolas DICHTEL <nicolas.dichtel@6wind.com>
To: netdev@vger.kernel.org
Subject: Oops in IFB
Date: Thu, 20 Jul 2006 15:33:28 +0200 [thread overview]
Message-ID: <44BF8628.9080204@6wind.com> (raw)
[-- 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);
}
next reply other threads:[~2006-07-20 13:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-20 13:33 Nicolas DICHTEL [this message]
2006-07-20 13:40 ` Oops in IFB 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
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=44BF8628.9080204@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=netdev@vger.kernel.org \
/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 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.