diff options
| author | 2022-06-06 16:17:14 +0800 | |
|---|---|---|
| committer | 2022-08-01 11:26:09 -0700 | |
| commit | 63c3b5d2ca96b4a2a88ae01bea94021e874ce8fe (patch) | |
| tree | 6f983efef5d8cfc22f1e5b1c2f380db4fd922fc1 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | Linux 5.19-rc1 (diff) | |
| download | linux-dev-63c3b5d2ca96b4a2a88ae01bea94021e874ce8fe.tar.xz linux-dev-63c3b5d2ca96b4a2a88ae01bea94021e874ce8fe.zip | |
smack: Replace kzalloc + strncpy with kstrndup
Simplify the code by using kstrndup instead of kzalloc and strncpy in
smk_parse_smack(), which meanwhile remove strncpy as [1] suggests.
[1]: https://github.com/KSPP/linux/issues/90
Signed-off-by: GONG, Ruiqi <gongruiqi1@huawei.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
