diff options
| author | Ma Shimiao <mashimiao.fnst@cn.fujitsu.com> | 2017-12-17 01:45:33 +0300 |
|---|---|---|
| committer | Santosh Shilimkar <santosh.shilimkar@oracle.com> | 2017-12-17 01:45:33 +0300 |
| commit | aefc5818553680c50c9f6840e47c01b80edd9b3a (patch) | |
| tree | 8cc3f559facca7bc331099c1d968599649240503 /net/lapb/lapb_subr.c | |
| parent | bd0fa74e7ced89580428365515f3d370cd2810d8 (diff) | |
| download | linux-aefc5818553680c50c9f6840e47c01b80edd9b3a.tar.xz | |
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>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions
