]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drivers/net: Correct use of request_region/request_mem_region
authorJulia Lawall <julia@diku.dk>
Sat, 8 Aug 2009 21:43:42 +0000 (21:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 04:54:57 +0000 (21:54 -0700)
commitc9145a2df072f75d97592ddac1624baeb7bad195
tree436ff02613b350bd54a75c20b25dc465f17a6770
parentbdf50d7346588b22fd66367ae2890e2cbf574172
drivers/net: Correct use of request_region/request_mem_region

request_mem_region should be used with release_mem_region, not request_region.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r2@
expression start;
@@

request_mem_region(start,...)

@b2@
expression r2.start;
@@

request_region(start,...)

@depends on !b2@
expression r2.start;
expression E;
@@

- release_region
+ release_mem_region
  (start,E)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jazzsonic.c