aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/usr
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2020-03-24 13:23:36 +0000
committerDavid S. Miller <davem@davemloft.net>2020-03-24 16:33:04 -0700
commitee44d0b78839b21591501424fd3cb3648cc803b5 (patch)
treeb932b426c620e1d2019e993663439f1b1170c675 /usr
parentnet: axienet: Convert DMA error handler to a work queue (diff)
downloadwireguard-linux-ee44d0b78839b21591501424fd3cb3648cc803b5.tar.xz
wireguard-linux-ee44d0b78839b21591501424fd3cb3648cc803b5.zip
net: axienet: Propagate failure of DMA descriptor setup
When we fail allocating the DMA buffers in axienet_dma_bd_init(), we report this error, but carry on with initialisation nevertheless. This leads to a kernel panic when the driver later wants to send a packet, as it uses uninitialised data structures. Make the axienet_device_reset() routine return an error value, as it contains the DMA buffer initialisation. Make sure we propagate the error up the chain and eventually fail the driver initialisation, to avoid relying on non-initialised buffers. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions