]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: fix warning in rmmod caused by double iounmap
authorArthur Kiyanovski <akiyano@amazon.com>
Tue, 9 Oct 2018 08:21:27 +0000 (11:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Oct 2018 17:49:49 +0000 (10:49 -0700)
commit59eff320654393577aa728a11c131145e93a1f7c
treea3a93a98d12134f6e5e2346e112de757d54e97bd
parent603a85ed0e1f7782ee75231544bfcf21ca0f5f2a
net: ena: fix warning in rmmod caused by double iounmap

Memory mapped with devm_ioremap is automatically freed when the driver
is disconnected from the device. Therefore there is no need to
explicitly call devm_iounmap.

Fixes: ac71038c6ac0 ("net: ena: add missing unmap bars on device removal")
Fixes: c3da4dea2ec7 ("net: ena: fix rare kernel crash when bar memory remap fails")
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c