lib: list_sort_test(): add extra corruption check
authorRasmus Villemoes <[email protected]>
Wed, 6 Aug 2014 23:09:40 +0000 (16:09 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Aug 2014 01:01:25 +0000 (18:01 -0700)
commit9d418dcc6d15539a9567b2ad7fe7473648989f44
tree60e5064e246f254a65e0c2e979c4d0bf353fd00a
parent27d555d101c820ac4b1962680bd0192993c6e4e0
lib: list_sort_test(): add extra corruption check

Add a check to make sure that the prev pointer of the list head points
to the last element on the list.

Signed-off-by: Rasmus Villemoes <[email protected]>
Cc: Artem Bityutskiy <[email protected]>
Cc: Don Mullis <[email protected]>
Cc: Dave Chinner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/list_sort.c