Douglas Miller
c3589ff46e
be2net: Don't leak iomapped memory on removal.
...
commit a69bf3c5b49ef488970c74e26ba0ec12f08491c2 upstream.
The adapter->pcicfg resource is either mapped via pci_iomap() or
derived from adapter->db. During be_remove() this resource was ignored
and so could remain mapped after remove.
Add a flag to track whether adapter->pcicfg was mapped or not, then
use that flag in be_unmap_pci_bars() to unmap if required.
Fixes: 25848c901 ("use PCI MMIO read instead of config read for errors")
Signed-off-by: Douglas Miller <dougmill@linux.vnet.ibm.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-05-10 10:26:14 +02:00
..
2020-05-10 10:26:06 +02:00
2019-10-07 21:01:03 +02:00
2020-04-24 07:57:16 +02:00
2020-02-05 13:03:36 +00:00
2020-05-10 10:26:03 +02:00
2020-01-29 10:21:48 +01:00
2020-02-28 15:39:11 +01:00
2020-05-10 10:25:51 +02:00
2020-04-24 07:57:05 +02:00
2020-01-04 13:34:36 +01:00
2020-04-24 07:57:17 +02:00
2020-05-10 10:26:07 +02:00
2020-01-29 10:21:40 +01:00
2020-01-04 13:34:16 +01:00
2019-12-21 10:35:27 +01:00
2020-05-02 17:20:29 +02:00
2020-01-12 11:22:37 +01:00
2020-05-05 19:13:23 +02:00
2020-01-04 13:34:16 +01:00
2020-01-04 13:34:13 +01:00
2020-01-12 11:22:45 +01:00
2020-03-20 09:06:24 +01:00
2020-01-23 08:18:36 +01:00
2020-05-10 10:25:38 +02:00
2020-03-11 07:51:14 +01:00
2020-05-10 10:26:03 +02:00
2020-03-11 07:51:18 +01:00
2020-04-02 19:02:34 +02:00
2020-04-02 19:02:30 +02:00
2020-05-05 19:13:23 +02:00
2020-02-28 15:39:05 +01:00
2020-05-10 10:26:10 +02:00
2020-05-10 10:26:00 +02:00
2020-05-10 10:26:03 +02:00
2020-05-10 10:26:10 +02:00
2020-04-24 07:57:11 +02:00
2019-12-21 10:35:11 +01:00
2019-10-05 12:27:44 +02:00
2019-11-28 18:25:45 +01:00
2019-08-04 09:34:58 +02:00
2020-04-24 07:57:20 +02:00
2020-05-10 10:26:12 +02:00
2020-05-10 10:26:14 +02:00
2019-10-29 09:13:31 +01:00
2020-01-23 08:18:39 +01:00
2020-05-10 10:26:13 +02:00
2020-04-24 07:57:18 +02:00
2020-05-10 10:26:07 +02:00
2020-05-10 10:26:05 +02:00
2020-05-10 10:26:14 +02:00
2020-04-02 19:02:33 +02:00
2019-11-28 18:25:59 +01:00
2019-05-16 19:45:05 +02:00
2018-07-11 16:03:47 +02:00
2019-11-25 15:53:55 +01:00
2020-05-10 10:26:09 +02:00
2019-10-05 12:27:52 +02:00
2020-01-04 13:34:16 +01:00
2020-05-10 10:25:52 +02:00
2018-11-21 09:27:30 +01:00
2019-08-04 09:34:57 +02:00
2020-05-10 10:26:14 +02:00
2020-01-29 10:21:50 +01:00
2020-05-10 10:26:13 +02:00
2019-08-04 09:35:02 +02:00
2019-02-20 10:13:05 +01:00
2020-05-02 17:20:32 +02:00
2020-02-28 15:38:57 +01:00
2020-05-02 17:20:51 +02:00
2020-04-24 07:57:22 +02:00
2020-05-02 17:20:31 +02:00
2018-12-21 14:09:52 +01:00
2020-05-02 17:20:30 +02:00
2020-04-24 07:57:22 +02:00
2020-04-02 19:02:28 +02:00
2019-06-11 12:23:53 +02:00
2020-05-10 10:26:12 +02:00
2020-05-10 10:26:14 +02:00
2018-11-21 09:27:36 +01:00
2020-01-29 10:21:44 +01:00
2019-11-06 12:09:17 +01:00
2020-05-10 10:26:02 +02:00
2020-02-28 15:38:54 +01:00
2020-05-10 10:25:39 +02:00
2018-10-10 08:52:04 +02:00
2020-05-10 10:26:12 +02:00
2020-04-02 19:02:34 +02:00
2020-04-24 07:57:25 +02:00
2019-05-16 19:45:18 +02:00
2019-12-21 10:35:18 +01:00
2019-06-11 12:23:55 +02:00
2020-03-11 07:51:16 +01:00
2020-05-02 17:20:53 +02:00
2018-05-30 07:49:11 +02:00