crypto: hisilicon/qm - fix wrong release after using strsep
authorSihang Chen <chensihang1@hisilicon.com>
Sat, 15 Aug 2020 09:56:08 +0000 (17:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 04:47:50 +0000 (14:47 +1000)
commit7bbfacc1a89e173ec5ae681b581257db3cf5cc26
tree2e9be98a008a2b6fc0fc6a89b8aaf7cc260d1f1c
parentb1a5c9a620f2b1792e51ae3961b16943e4f874f2
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>
drivers/crypto/hisilicon/qm.c