[PATCH] net/ark: fix null dereference on allocation failure

Stephen Hemminger stephen at networkplumber.org
Wed Jun 3 17:31:04 CEST 2026


On Wed,  3 Jun 2026 08:21:54 +0300
Denis Sergeev <denserg.edu at gmail.com> wrote:

> +		if (eth_dev->data->dev_private == NULL) {
> +			ARK_PMD_LOG(ERR,
> +				    "Memory allocation for dev_private failed!"
> +				    " Exiting.\n");

Do not split error messages across lines. And no need for ! and the Exiting part.


More information about the dev mailing list