]> git.baikalelectronics.ru Git - kernel.git/commit
overflow: Correct check_shl_overflow() comment
authorKeith Busch <kbusch@kernel.org>
Thu, 1 Apr 2021 16:06:29 +0000 (09:06 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 1 Apr 2021 21:07:41 +0000 (14:07 -0700)
commit2441c8f3dcda04f725bf17afdf7dfe2d0d90f387
tree3fff5a3d13dbfb53cc8b855a7a5927e139ec29ec
parent1b8bd930b05ba1f659bccfc6ef406e93916f57ed
overflow: Correct check_shl_overflow() comment

A 'false' return means the value was safely set, so the comment should
say 'true' for when it is not considered safe.

Cc: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Fixes: 8c187ae6897e ("overflow.h: Add arithmetic shift helper")
Link: https://lore.kernel.org/r/20210401160629.1941787-1-kbusch@kernel.org
include/linux/overflow.h