aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorAndre Przywara <[email protected]>2020-03-24 13:23:36 +0000
committerDavid S. Miller <[email protected]>2020-03-24 16:33:04 -0700
commitee44d0b78839b21591501424fd3cb3648cc803b5 (patch)
treeb932b426c620e1d2019e993663439f1b1170c675 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent24201a64770afe2e17050b2ab9e8c0e24e9c23b2 (diff)
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 <[email protected]> Reviewed-by: Radhey Shyam Pandey <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions