Files
linux/drivers/video
Julia Lawall 7a6278e5e4 drivers/video/pnx4008: eliminate double free
The function framebuffer_release just calls kfree, so calling kfree
subsequently on the same argument represents a double free.  The comments with
the definition of framebuffer_release in drivers/video/fbsysfs.c suggest that
a more elaborate definition of this function is planned, such that the
splitting up of framebuffer_release and kfree as done in the second instance
might someday make sense, but it does not make sense now.

This was found using the following semantic match.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression E;
@@

* kfree(E);
...
* framebuffer_release(E);

@@
expression E;
@@

* framebuffer_release(E);
...
* kfree(E);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Vitaly Wool <vitalywool@gmail.com>
Cc: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: Grigory Tolstolytkin <gtolstolytkin@ru.mvista.com>
Cc: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-13 08:02:24 -07:00
..
…
2007-10-18 14:37:17 -07:00
2008-03-10 18:01:20 -07:00
2008-02-03 17:31:49 +02:00
2008-04-28 08:58:38 -07:00
2008-04-28 08:58:18 -07:00
…
…
…
…
2008-04-28 08:58:38 -07:00
2008-04-28 08:58:35 -07:00
…
2007-10-18 14:37:17 -07:00
…
…
2008-05-08 21:37:30 -07:00
…
…
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-02-03 17:31:49 +02:00
…
…
2007-11-29 09:24:52 -08:00
2008-03-19 18:53:37 -07:00
…
…
2008-02-06 10:41:15 -08:00
…
2008-05-08 21:37:30 -07:00
…
…
2007-11-14 18:45:42 -08:00
2008-04-28 08:58:35 -07:00
…
2008-02-06 10:41:15 -08:00
2008-02-06 10:41:16 -08:00
…
2008-05-08 21:37:30 -07:00
…
2008-04-28 08:58:41 -07:00
…
2007-10-16 09:43:20 -07:00
2008-02-06 10:41:17 -08:00
…
2008-04-28 08:58:38 -07:00
…
2008-03-04 16:35:13 -08:00
…
2007-10-16 09:43:22 -07:00
2008-05-08 21:37:30 -07:00
…
…
2008-04-28 08:58:38 -07:00
…