diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-10-26 14:23:08 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 16:52:19 -0700 |
commit | 041b78f232bb87b2de8ca3fed50384bc7dc9c2de (patch) | |
tree | ca76ca89b76360f9fbc5987519d6cf0c8c53cdda /lib/zlib_deflate | |
parent | 014afa943d44f0df8e65bc4bd071c67772277d93 (diff) | |
download | op-kernel-dev-041b78f232bb87b2de8ca3fed50384bc7dc9c2de.zip op-kernel-dev-041b78f232bb87b2de8ca3fed50384bc7dc9c2de.tar.gz |
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 <Artem.Bityutskiy@nokia.com>
Cc: Don Mullis <don.mullis@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/zlib_deflate')
0 files changed, 0 insertions, 0 deletions