util: kernel: Fix overflow with bit operations 13/272713/2 accepted/tizen/unified/20220323.133748 submit/tizen/20220323.085026
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 23 Mar 2022 04:59:10 +0000 (13:59 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 23 Mar 2022 08:30:40 +0000 (17:30 +0900)
commit0c5633b4fc5fd39698a9f9bea446261b513ba1be
tree978e14400c914a25a00d7bf087727415ae057daa
parentd4459b40c388a07af1a05488e2f88a3dffa907d9
util: kernel: Fix overflow with bit operations

Drop 10 MSB bit and 10 left shift operation without multiply operation.

Change-Id: I9cc0d5a3f131686c49757edfc2565f25e6a1ecef
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/util/common.h
src/util/kernel.c