Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit aefc5818 authored by Ma Shimiao's avatar Ma Shimiao Committed by Santosh Shilimkar
Browse files

soc: ti: fix max dup length for kstrndup



If source string longer than max, kstrndup will alloc max+1 space.
So, we should make sure the result will not over limit.

Signed-off-by: default avatarMa Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
parent bd0fa74e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment