Commit 73149b1f authored by Yuyao Lin's avatar Yuyao Lin Committed by Laibin Qiu
Browse files

Revert "posix-cpu-timers: Make timespec to nsec conversion safe"



Offering: HULK
hulk inclusion
category: bugfix
bugzilla: 186339

--------------------------------

This reverts commit 098b0e01.

Function timespec64_to_ns() Add the upper and lower limits check in
commit c0b52741 ("time: Prevent undefined behaviour in timespec64_to_ns()"),
timespec64_to_ktime() only check the upper limits, so revert this
patch can fix overflow.

Signed-off-by: default avatarYuyao Lin <linyuyao1@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
Signed-off-by: default avatarLaibin Qiu <qiulaibin@huawei.com>
parent 99aa811a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment