lkml.org 
[lkml]   [2008]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH][RT] Dereference pointer to cpu id, not to address of CPUID
From
Date
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);



\
 
 \ /
  Last update: 2008-11-07 22:15    [W:0.050 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site