From: Sven-Thorsten Dietrich <sven@thebigcorporation.com>
To: RT Users List <linux-rt-users@vger.kernel.org>
Cc: LKML <Linux-kernel@vger.kernel.org>, Tony Jones <tonyj@suse.de>
Subject: [PATCH][RT] Dereference pointer to cpu id, not to address of CPUID
Date: Fri, 07 Nov 2008 13:13:27 -0800 [thread overview]
Message-ID: <1226092407.5685.7.camel@dd> (raw)
This patch applies to 2.6.25-rt, 2.6.26-rt and 2.6.27-rt
From: Sven-Thorsten Dietrich <sdietrich@suse.de>
Subject: Dereference pointer to cpu id, when evaluating condition.
Without dereferencing, the condition always evaluates to true.
Signed-off-by: Sven-Thorsten Dietrich <sdietrich@suse.de>
---
mm/slab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2033,7 +2033,7 @@ slab_destroy(struct kmem_cache *cachep,
} else {
kmem_freepages(cachep, addr);
if (OFF_SLAB(cachep)) {
- if (this_cpu)
+ if (*this_cpu)
__cache_free(cachep->slabp_cache, slabp, this_cpu);
else
kmem_cache_free(cachep->slabp_cache, slabp);
next reply other threads:[~2008-11-07 21:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-07 21:13 Sven-Thorsten Dietrich [this message]
2008-11-09 10:20 ` [PATCH][RT] Dereference pointer to cpu id, not to address of CPUID Juergen Beisert
2008-11-09 11:10 ` Sven-Thorsten Dietrich
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=1226092407.5685.7.camel@dd \
--to=sven@thebigcorporation.com \
--cc=Linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=tonyj@suse.de \
/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