crypto/caam_jr: fix check of file descriptors
authorYunjian Wang <wangyunjian@huawei.com>
Thu, 14 May 2020 10:59:55 +0000 (18:59 +0800)
committerAkhil Goyal <akhil.goyal@nxp.com>
Sun, 17 May 2020 14:10:44 +0000 (16:10 +0200)
commit61552661e25df5b78be3079bc02b56a375dc0fdc
tree340c0850052df7b71222174253e7a7198c9cf566
parent29fdc5bf4555e16e866188dd9fe95f9bab01404a
crypto/caam_jr: fix check of file descriptors

Zero is a valid fd. It will fail to check the fd if the fd is zero.
The "job_ring->uio_fd" is an fd, so define it as "int".

Fixes: e7a45f3cc245 ("crypto/caam_jr: add UIO specific operations")
Fixes: a5e1018d5e67 ("crypto/caam_jr: add routines to configure HW")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Gagandeep Singh <g.singh@nxp.com>
drivers/crypto/caam_jr/caam_jr.c
drivers/crypto/caam_jr/caam_jr_hw_specific.h
drivers/crypto/caam_jr/caam_jr_pvt.h
drivers/crypto/caam_jr/caam_jr_uio.c