commit | 7bbfacc1a89e173ec5ae681b581257db3cf5cc26 | [log] [tgz] |
---|---|---|
author | Sihang Chen <chensihang1@hisilicon.com> | Sat Aug 15 17:56:08 2020 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Aug 21 14:47:50 2020 +1000 |
tree | 2e9be98a008a2b6fc0fc6a89b8aaf7cc260d1f1c | |
parent | b1a5c9a620f2b1792e51ae3961b16943e4f874f2 [diff] |
crypto: hisilicon/qm - fix wrong release after using strsep Save the string address before pass to strsep, release it at end. Because strsep will update the string address to point after the token. Fixes: c31dc9fe165d("crypto: hisilicon/qm - add DebugFS for xQC and...") Signed-off-by: Sihang Chen <chensihang1@hisilicon.com> Signed-off-by: Yang Shen <shenyang39@huawei.com> Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>