[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191112.195057.522550661453260702.davem@davemloft.net>
Date: Tue, 12 Nov 2019 19:50:57 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: ioana.ciornei@....com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net v3] dpaa2-eth: free already allocated channels on
probe defer
From: Ioana Ciornei <ioana.ciornei@....com>
Date: Tue, 12 Nov 2019 18:21:52 +0200
> The setup_dpio() function tries to allocate a number of channels equal
> to the number of CPUs online. When there are not enough DPCON objects
> already probed, the function will return EPROBE_DEFER. When this
> happens, the already allocated channels are not freed. This results in
> the incapacity of properly probing the next time around.
> Fix this by freeing the channels on the error path.
>
> Fixes: d7f5a9d89a55 ("dpaa2-eth: defer probe on object allocate")
> Signed-off-by: Ioana Ciornei <ioana.ciornei@....com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists