]> git.baikalelectronics.ru Git - kernel.git/commit
mm/slab.h: fix argument order in cache_from_obj's error message
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 4 Sep 2015 22:45:57 +0000 (15:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commit345f70c057efc3d6d92df5263a699e15e56d8eb8
tree2b4d6e446835797dc5dd3e1e8b0c86361cfc3231
parentb741da1426a5e70bade8bad1cc9d6112d42bcbca
mm/slab.h: fix argument order in cache_from_obj's error message

While debugging a networking issue, I hit a condition that triggered an
object to be freed into the wrong kmem cache, and thus triggered the
warning in cache_from_obj().

The arguments in the error message are in wrong order: the location
of the object's kmem cache is in cachep, not s.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.h