From: Artem Bityutskiy Date: Tue, 26 Oct 2010 21:23:08 +0000 (-0700) Subject: lib/list_sort: test: check element addresses X-Git-Tag: v2.6.37-rc1~105^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=041b78f232bb87b2de8ca3fed50384bc7dc9c2de;p=pandora-kernel.git lib/list_sort: test: check element addresses Improve 'lib_sort()' test and check that: o 'cmp()' is called only for elements which were present in the original list, i.e., the 'a' and 'b' parameters are valid o the resulted (sorted) list consists onlly of the original elements o intdoruce "poison" fields to make sure data around 'struc list_head' field are not corrupted. Signed-off-by: Artem Bityutskiy Cc: Don Mullis Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed