diff options
author | Yunfeng Ye <yeyunfeng@huawei.com> | 2019-09-16 09:38:25 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-09-20 15:53:09 +0300 |
commit | 62a9d9fc7a210005cdbbf186d6e655228497dfac (patch) | |
tree | 3ae837c47d49ad7b48e586ef578aa7cb300910fe /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | e00371af1d4ce73d527d8ee69fda2febaf5a42c2 (diff) | |
download | linux-62a9d9fc7a210005cdbbf186d6e655228497dfac.tar.xz |
crypto: hisilicon - Fix return value check in hisi_zip_acompress()
The return valude of add_comp_head() is int, but @head_size is size_t,
which is a unsigned type.
size_t head_size;
...
if (head_size < 0) // it will never work
return -ENOMEM
Modify the type of @head_size to int, then change the type to size_t
when invoke hisi_zip_create_req() as a parameter.
Fixes: 62c455ca853e ("crypto: hisilicon - add HiSilicon ZIP accelerator support")
Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Acked-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions