Julia Lawall 0fdd07f77f VIDEO: Correct use of request_region/request_mem_region
request_region should be used with release_region, not request_mem_region.

Geert Uytterhoeven pointed out that in the case of drivers/video/gbefb.c,
the problem is actually the other way around; request_mem_region should be
used instead of request_region.

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

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

request_region(start,...)

@b1@
expression r1.start;
@@

request_mem_region(start,...)

@depends on !b1@
expression r1.start;
expression E;
@@

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

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2009-12-02 23:58:32 +00:00
..
2009-09-23 07:39:50 -07:00
2008-03-10 18:01:20 -07:00
2009-04-01 08:59:31 -07:00
2009-06-16 19:47:59 -07:00
2009-04-01 08:59:32 -07:00
2009-01-12 20:56:32 +01:00
2008-07-24 10:47:34 -07:00
2009-06-16 19:47:58 -07:00
2008-05-18 13:28:49 -07:00
2009-09-23 07:39:51 -07:00
2009-05-06 16:36:10 -07:00
2009-07-07 11:50:57 +09:00
2009-09-21 15:14:58 +02:00
2009-09-23 07:39:51 -07:00
2008-04-28 08:58:41 -07:00
2009-01-06 15:59:27 -08:00
2009-01-06 15:59:27 -08:00
2009-03-17 09:30:36 +09:00
2009-04-01 08:59:31 -07:00
2009-04-01 08:59:31 -07:00
2008-10-16 11:21:42 -07:00