linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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] ES968: kmalloc params fix
Date: Mon, 31 Mar 2003 14:39:54 -0300 (ART)	[thread overview]
Message-ID: <Pine.LNX.4.33.0303311242340.626-100000@pablo.menichini.com.ar> (raw)

This patch swaps the arguments of kmalloc, and relax the type
of allocation to GFP_KERNEL as others PnP functions do.

Pablo


--- sound/isa/sb/es968.c.orig	Sun Mar 30 14:30:08 2003
+++ sound/isa/sb/es968.c	Sun Mar 30 14:32:16 2003
@@ -95,7 +95,7 @@
 					const struct pnp_card_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)
 		return -ENOMEM;






             reply	other threads:[~2003-03-31 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-31 17:39 Pablo Menichini [this message]
2003-04-10  3:15 ` [PATCH 2.5] SB16: fix kmalloc params Pablo Menichini

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.0303311242340.626-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).