From: Patrick McHardy <kaber@trash.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: Maillist netdev <netdev@oss.sgi.com>
Subject: [IPV4]: multipath_wrandom.c GPF fixes
Date: Thu, 05 May 2005 22:31:06 +0200 [thread overview]
Message-ID: <427A828A.3080309@trash.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 44 bytes --]
multipath_wrandom needs to use GFP_ATOMIC.
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 1532 bytes --]
[IPV4]: multipath_wrandom.c GPF fixes
Signed-off-by: Patrick McHardy <kaber@trash.net>
---
commit cdb5c875d48676b20ecd95fef080891a68c32e9c
tree 46b576def0e0b0e4600193306cb830e66b5a57da
parent 3a614a8969f79ac4116f496beff879736dca83e2
author Patrick McHardy <kaber@trash.net> 1115277458 +0200
committer Patrick McHardy <kaber@trash.net> 1115277458 +0200
Index: net/ipv4/multipath_wrandom.c
===================================================================
--- a744d6c4cd2587f82796c0f6cb4d7f94744ef9f2/net/ipv4/multipath_wrandom.c (mode:100644 sha1:10b23e1bece663bd8a9317f980b30ec0df7f0a11)
+++ 46b576def0e0b0e4600193306cb830e66b5a57da/net/ipv4/multipath_wrandom.c (mode:100644 sha1:c3d2ca1a6781513bc7b2524aad96f61e7a4053a6)
@@ -172,7 +172,7 @@
multipath_comparekeys(&rt->fl, flp)) {
struct multipath_candidate* mpc =
(struct multipath_candidate*)
- kmalloc(size_mpc, GFP_KERNEL);
+ kmalloc(size_mpc, GFP_ATOMIC);
if (!mpc)
return;
@@ -244,7 +244,7 @@
if (!target_route) {
const size_t size_rt = sizeof(struct multipath_route);
target_route = (struct multipath_route *)
- kmalloc(size_rt, GFP_KERNEL);
+ kmalloc(size_rt, GFP_ATOMIC);
target_route->gw = nh->nh_gw;
target_route->oif = nh->nh_oif;
@@ -265,7 +265,7 @@
if (!target_dest) {
const size_t size_dst = sizeof(struct multipath_dest);
target_dest = (struct multipath_dest*)
- kmalloc(size_dst, GFP_KERNEL);
+ kmalloc(size_dst, GFP_ATOMIC);
target_dest->nh_info = nh;
target_dest->network = network;
next reply other threads:[~2005-05-05 20:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-05 20:31 Patrick McHardy [this message]
2005-05-05 21:28 ` [IPV4]: multipath_wrandom.c GPF fixes David S. Miller
2005-05-05 22:33 ` Patrick McHardy
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=427A828A.3080309@trash.net \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=netdev@oss.sgi.com \
/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.