]> 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)
commitb09c4c8c45ee99ef84d537b39f99451eae6b2355
treea3a93a98d12134f6e5e2346e112de757d54e97bd
parent9167f62d85a7fd7c07fa64271491030207ea48ef
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: ffb8f75e3d30 ("net: ena: add missing unmap bars on device removal")
Fixes: 20918a96828d ("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