Re: [PATCH v2] net: ethernet: arc: Fix a potential memory leak if an optional regulator is deferred

2018-03-20 Thread David Miller
From: Christophe JAILLET Date: Sun, 18 Mar 2018 23:59:36 +0100 > If the optional regulator is deferred, we must release some resources. > They will be re-allocated when the probe function will be called again. > > Fixes: 6eacf31139bf ("ethernet: arc: Add support for Rockchip SoC layer > device

[PATCH v2] net: ethernet: arc: Fix a potential memory leak if an optional regulator is deferred

2018-03-18 Thread Christophe JAILLET
If the optional regulator is deferred, we must release some resources. They will be re-allocated when the probe function will be called again. Fixes: 6eacf31139bf ("ethernet: arc: Add support for Rockchip SoC layer device tree bindings") Signed-off-by: Christophe JAILLET --- v2: v1 did not compi