[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7e220dd5-fb54-84b4-20c9-a318d18d747b@gmx.de>
Date: Sat, 13 Oct 2018 02:16:17 +0200
From: Lino Sanfilippo <LinoSanfilippo@....de>
To: Harsh Jain <harsh@...lsio.com>, herbert@...dor.apana.org.au,
atul.gupta@...lsio.com, indranil@...lsio.com,
swise@...ngridcomputing.com, varun@...lsio.com,
ganeshgr@...lsio.com, netdev@...r.kernel.org,
linux-crypto@...r.kernel.org
Subject: Re: [PATCH 1/1] crypto:chelsio: Update ntx queue received from cxgb4
Hi,
> + if (uld_type == CXGB4_ULD_CRYPTO) {
> + i = min_t(int, adap->vres.ncrypto_fc,
> + num_online_cpus());
> + txq_info->ntxq = rounddown(i, adap->params.nports);
> + if (txq_info->ntxq <= 0) {
> + dev_warn(adap->pdev_dev, "Crypto Tx Queues can't be zero\n");
> + return -EINVAL;
> + }
Shouldn't we free txq_info in the error case?
Regards,
Lino
Powered by blists - more mailing lists