]> git.baikalelectronics.ru Git - kernel.git/commit
lib/stackdepot.c: allow the stack trace hash to be zero
authorAlexander Potapenko <glider@google.com>
Thu, 28 Apr 2016 23:19:09 +0000 (16:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 Apr 2016 02:34:04 +0000 (19:34 -0700)
commita65a231eda270d1313b0573bdf865c1754b930e6
tree2155c46b6af3bb6a37909cdb74cb94b4bf071124
parentd053225c1d9e13dafcd8d94639979b919c7780df
lib/stackdepot.c: allow the stack trace hash to be zero

Do not bail out from depot_save_stack() if the stack trace has zero hash.
Initially depot_save_stack() silently dropped stack traces with zero
hashes, however there's actually no point in reserving this zero value.

Reported-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Alexander Potapenko <glider@google.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/stackdepot.c