]> git.baikalelectronics.ru Git - kernel.git/commit
soc: ti: fix max dup length for kstrndup
authorMa Shimiao <mashimiao.fnst@cn.fujitsu.com>
Sat, 16 Dec 2017 22:45:33 +0000 (14:45 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Sat, 16 Dec 2017 22:45:33 +0000 (14:45 -0800)
commitc3ea071bb0b51674bcb1d2cb0cfb1f7be5705747
tree8cc3f559facca7bc331099c1d968599649240503
parent883f5e585b6937509d4551a6c6e0e1d75656ecf8
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: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/knav_qmss_queue.c