lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250118172420.48d3a914@kernel.org>
Date: Sat, 18 Jan 2025 17:24:20 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: John Daley <johndale@...co.com>
Cc: benve@...co.com, satishkh@...co.com, andrew+netdev@...n.ch,
 davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
 netdev@...r.kernel.org, Nelson Escobar <neescoba@...co.com>
Subject: Re: [PATCH net-next v6 3/3] enic: Use the Page Pool API for RX

On Fri, 17 Jan 2025 00:01:39 -0800 John Daley wrote:
> @@ -1752,6 +1763,11 @@ static int enic_open(struct net_device *netdev)
>  	}
>  
>  	for (i = 0; i < enic->rq_count; i++) {
> +		/* create a page pool for each RQ */
> +		pp_params.napi = &enic->napi[i];
> +		pp_params.queue_idx = i;
> +		enic->rq[i].pool = page_pool_create(&pp_params);

Aren't you missing an error check here?

>  		/* enable rq before updating rq desc */
>  		vnic_rq_enable(&enic->rq[i].vrq);
>  		vnic_rq_fill(&enic->rq[i].vrq, enic_rq_alloc_buf);

-- 
pw-bot: cr

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ