All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: MOLNAR Ingo <mingo@chiara.csoma.elte.hu>
To: Randy Dees <rrd@amherst.com>
Cc: Linux Kernel List <linux-kernel@vger.rutgers.edu>
Subject: Re: Bug - Re: memleak 'DeLuxe' detector, 2.0.32, patch
Date: Sat, 6 Dec 1997 07:16:59 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.3.96.971206071424.8322A-100000@chiara.csoma.elte.hu> (raw)
In-Reply-To: <19971205123800.34650@odo.amherst.com>


On Fri, 5 Dec 1997, Randy Dees wrote:

> Thanks - but it won't compile for me.  

ok, the problem is that kfree() is now a macro, and the NCR driver tries
to take it's address ... 

this little patch should help:

--- 53c7,8xx.c.orig	Sat Dec  6 08:14:24 1997
+++ 53c7,8xx.c	Sat Dec  6 08:16:20 1997
@@ -3396,6 +3396,11 @@
     NCR53c7x0_write8(STEST3_REG_800, STEST3_800_TE);
 }
 
+static void private_kfree (void * addr)
+{
+	kfree(addr);
+}
+
 /*
  * Function static struct NCR53c7x0_cmd *allocate_cmd (Scsi_Cmnd *cmd)
  * 
@@ -3467,7 +3472,7 @@
 #ifdef LINUX_1_2
 	tmp->free = ((void (*)(void *, int)) kfree_s);
 #else
-	tmp->free = ((void (*)(void *, int)) kfree);
+	tmp->free = ((void (*)(void *, int)) private_kfree);
 #endif
 	save_flags (flags);
 	cli();

           reply	other threads:[~1997-12-09  0:21 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <19971205123800.34650@odo.amherst.com>]

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.3.96.971206071424.8322A-100000@chiara.csoma.elte.hu \
    --to=mingo@chiara.csoma.elte.hu \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=rrd@amherst.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.