Messages in this thread | | | Subject | Re: [PATCH 2/2] INTEL-IGB: Convert iounmap to pci_iounmap | From | Jeff Kirsher <> | Date | Tue, 18 Mar 2014 21:33:06 -0700 |
| |
On Tue, 2014-03-18 at 17:11 +0100, Peter Senna Tschudin wrote: > Use pci_iounmap instead of iounmap when the virtual mapping was done > with pci_iomap. A simplified version of the semantic patch that finds > this > issue is as follows: (http://coccinelle.lip6.fr/) > > // <smpl> > @r@ > expression addr; > @@ > addr = pci_iomap(...) > > @rr@ > expression r.addr; > @@ > * iounmap(addr) > // </smpl> > > Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> > --- > Tested by compilation only. > > drivers/net/ethernet/intel/igb/igb_main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks Peter, I have added you patch to my queue. [unhandled content-type:application/pgp-signature] | |