mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
crypto: octeontx2 - fix signedness bug in cptvf_register_interrupts()
The "num_vec" has to be signed for the error handling to work.
Fixes: 19d8e8c7be
("crypto: octeontx2 - add virtual function driver support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
b2cd1d812b
commit
b33fa5ff81
@@ -34,7 +34,7 @@ static void cptvf_disable_pfvf_mbox_intrs(struct otx2_cptvf_dev *cptvf)
|
||||
static int cptvf_register_interrupts(struct otx2_cptvf_dev *cptvf)
|
||||
{
|
||||
int ret, irq;
|
||||
u32 num_vec;
|
||||
int num_vec;
|
||||
|
||||
num_vec = pci_msix_vec_count(cptvf->pdev);
|
||||
if (num_vec <= 0)
|
||||
|
Reference in New Issue
Block a user