summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-wsem.h
diff options
context:
space:
mode:
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>2016-05-06 02:22:35 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-06 03:38:53 +0300
commit7c31190bcfdbff225950902a9f226e4eb79ca94f (patch)
tree3d9c55c6df3e04a3c0a87106d4d424e8db1bcdb9 /lib/locking-selftest-wsem.h
parent172400c69cb0d0d684b7cd75ac75872b3d7c61a1 (diff)
downloadlinux-7c31190bcfdbff225950902a9f226e4eb79ca94f.tar.xz
lib/stackdepot: avoid to return 0 handle
Recently, we allow to save the stacktrace whose hashed value is 0. It causes the problem that stackdepot could return 0 even if in success. User of stackdepot cannot distinguish whether it is success or not so we need to solve this problem. In this patch, 1 bit are added to handle and make valid handle none 0 by setting this bit. After that, valid handle will not be 0 and 0 handle will represent failure correctly. Fixes: 33334e25769c ("lib/stackdepot.c: allow the stack trace hash to be zero") Link: http://lkml.kernel.org/r/1462252403-1106-1-git-send-email-iamjoonsoo.kim@lge.com Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Alexander Potapenko <glider@google.com> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/locking-selftest-wsem.h')
0 files changed, 0 insertions, 0 deletions