Re: [PATCH] net: atheros: atl2: don't return zero on failure path in atl2_probe()

From: David Miller
Date: Mon May 22 2017 - 12:05:30 EST


From: Alexey Khoroshilov <khoroshilov@xxxxxxxxx>
Date: Sat, 20 May 2017 01:52:11 +0300

> If dma mask checks fail in atl2_probe(), it breaks off initialization,
> deallocates all resources, but returns zero.
>
> The patch adds proper error code return value and
> make error code setup unified.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Alexey Khoroshilov <khoroshilov@xxxxxxxxx>

Looks good, applied, thanks.