[PATCH V2 net 09/20] net/ena: fix potential access to freed memory during device reset

2016-12-04 Thread Netanel Belgazal
If the ena driver detects that the device is not behave as expected, it tries to reset the device. The reset flow calls ena_down, which will frees all the resources the driver allocates and then it will reset the device. This flow can cause memory corruption if the device is still writes to the

[PATCH V2 net 09/20] net/ena: fix potential access to freed memory during device reset

2016-12-04 Thread Netanel Belgazal
If the ena driver detects that the device is not behave as expected, it tries to reset the device. The reset flow calls ena_down, which will frees all the resources the driver allocates and then it will reset the device. This flow can cause memory corruption if the device is still writes to the