From: Pablo Menichini <pablo@menichini.com.ar>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: Adam Belay <ambx1@neo.rr.com>, Jaroslav Kysela <perex@perex.cz>
Subject: [PATCH 2.5] SB16: fix kmalloc params
Date: Thu, 10 Apr 2003 00:15:10 -0300 (ART) [thread overview]
Message-ID: <Pine.LNX.4.33.0304081528440.395-100000@pablo.menichini.com.ar> (raw)
In-Reply-To: <Pine.LNX.4.33.0303311242340.626-100000@pablo.menichini.com.ar>
This patch swaps the arguments of kmalloc, and relax the type
of allocation to GFP_KERNEL as others PnP functions do.
Pablo
--- linux-2.5.67/sound/isa/sb/sb16.c Tue Apr 8 15:24:31 2003
+++ linux-local/sound/isa/sb/sb16.c Tue Apr 8 15:24:52 2003
@@ -261,7 +261,7 @@
const struct pnp_card_device_id *id)
{
struct pnp_dev *pdev;
- struct pnp_resource_table * cfg = kmalloc(GFP_ATOMIC, sizeof(struct pnp_resource_table));
+ struct pnp_resource_table *cfg = kmalloc(sizeof(*cfg), GFP_KERNEL);
int err;
if (!cfg)
prev parent reply other threads:[~2003-04-10 3:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-31 17:39 [PATCH 2.5] ES968: kmalloc params fix Pablo Menichini
2003-04-10 3:15 ` Pablo Menichini [this message]
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=Pine.LNX.4.33.0304081528440.395-100000@pablo.menichini.com.ar \
--to=pablo@menichini.com.ar \
--cc=ambx1@neo.rr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
/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 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).