Thread (16 messages) 16 messages, 4 authors, 2021-01-14

Re: [PATCH net-next v4 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-01-14 18:38:56
Also in: netdev

On 1/14/21 10:35 AM, George McCollister wrote:
quoted
Nothing frees up the successfully allocated p->mib_data[] in case of
errors so you would be leaking here.
In case of an error probe will end up returning an error and the
memory will be free'd since it was allocated with a devm_ function,
won't it?
Sorry completely missed that xrs700x_alloc_port_mib() used a
devm_kzalloc(), this is fine.
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help