linux-stable/drivers/net/ethernet/amazon
Arthur Kiyanovski e76ad21d07 net: ena: fix crash during failed resume from hibernation
During resume from hibernation if ena_restore_device fails,
ena_com_dev_reset() is called, and uses the readless read mechanism,
which was already destroyed by the call to
ena_com_mmio_reg_read_request_destroy(). This causes a NULL pointer
reference.

In this commit we switch the call order of the above two functions
to avoid this crash.

Fixes: d7703ddbd7 ("net: ena: fix rare bug when failed restart/resume is followed by driver removal")
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-11-19 15:13:00 -08:00
..
ena net: ena: fix crash during failed resume from hibernation 2018-11-19 15:13:00 -08:00
Kconfig net: ena: Fix Kconfig dependency on X86 2018-10-17 22:28:34 -07:00
Makefile