]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
klist: Fix object alignment on 64-bit.
authorDavid Miller <davem@davemloft.net>
Mon, 14 Feb 2011 00:37:07 +0000 (16:37 -0800)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:57:52 +0000 (11:57 -0700)
commitdf73343c660da9b988c068456d2ef0d511456573
treed041759f21373b21ce715a7e281802451cf7fe6b
parentd9ad11a63585b0f918d396176c528e57bac99f5e
klist: Fix object alignment on 64-bit.

commit 795abaf1e4e188c4171e3cd3dbb11a9fcacaf505 upstream.

Commit c0e69a5bbc6f ("klist.c: bit 0 in pointer can't be used as flag")
intended to make sure that all klist objects were at least pointer size
aligned, but used the constant "4" which only works on 32-bit.

Use "sizeof(void *)" which is correct in all cases.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
include/linux/klist.h