[PATCH net 17/18] net/ena: fix NULL dereference when removing the driver after device reset faild

2016-11-20 Thread Netanel Belgazal
If for some reason the device stop responding and the device reset failed to recover the device, the mmio register read datastructure will not be reinitialized. On driver removal, the driver will also tries to reset the device but this time the mmio data structure will be NULL. To solve this

[PATCH net 17/18] net/ena: fix NULL dereference when removing the driver after device reset faild

2016-11-20 Thread Netanel Belgazal
If for some reason the device stop responding and the device reset failed to recover the device, the mmio register read datastructure will not be reinitialized. On driver removal, the driver will also tries to reset the device but this time the mmio data structure will be NULL. To solve this