Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1800782016fda6fbc9990a0227fec581070f23af
Commit:     1800782016fda6fbc9990a0227fec581070f23af
Parent:     1abd727ed7abf5c19e7d1760671475cbecbccb0e
Author:     Hugh Dickins <[EMAIL PROTECTED]>
AuthorDate: Tue May 15 23:57:04 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed May 16 21:19:15 2007 -0700

    slub: don't confuse ctor and dtor
    
    kmem_cache_create() was swapping ctor and dtor in calling find_mergeable():
    though it caused no bug, and probably never would, even if destructors are
    retained; but fix it so as not to generate anxiety ;)
    
    Signed-off-by: Hugh Dickins <[EMAIL PROTECTED]>
    Cc: Christoph Lameter <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 mm/slub.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/slub.c b/mm/slub.c
index b39c8a6..5e3e8bc 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2522,7 +2522,7 @@ struct kmem_cache *kmem_cache_create(const char *name, 
size_t size,
        struct kmem_cache *s;
 
        down_write(&slub_lock);
-       s = find_mergeable(size, align, flags, dtor, ctor);
+       s = find_mergeable(size, align, flags, ctor, dtor);
        if (s) {
                s->refcount++;
                /*
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to