mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
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: Ma Shimiao <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]>