Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx> --- drivers/net/tap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/tap.c b/drivers/net/tap.c index dfa9bc2..4277956 100644 --- a/drivers/net/tap.c +++ b/drivers/net/tap.c @@ -99,14 +99,15 @@ static int tap_probe(struct device_d *dev) eth_register(edev); - return 0; + return 0; + out: free(priv); return ret; } static struct driver_d tap_driver = { - .name = "tap", - .probe = tap_probe, + .name = "tap", + .probe = tap_probe, }; device_platform_driver(tap_driver); -- 2.6.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox