]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: atheros: atl2: don't return zero on failure path in atl2_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 19 May 2017 22:52:11 +0000 (01:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 16:05:01 +0000 (12:05 -0400)
commitbd703a1524e851b8d6d646be9dafd794d4eb6045
treebccc0d440b8b99c8ece4a973b593a2aed173d8d7
parent232cd35d0804cc241eb887bb8d4d9b3b9881c64a
net: atheros: atl2: don't return zero on failure path in atl2_probe()

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@ispras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atlx/atl2.c