diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-22 17:31:23 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 15:10:33 -0300 |
commit | ed0ee8e1fbab49b494ef2994be92e7832dd6673c (patch) | |
tree | c162c47226806b6dc5ca25821ce58b9856764dfc /drivers/mtd | |
parent | e0572325d23b8c89930a08e0b8b3850a6fe75d7d (diff) | |
download | op-kernel-dev-ed0ee8e1fbab49b494ef2994be92e7832dd6673c.zip op-kernel-dev-ed0ee8e1fbab49b494ef2994be92e7832dd6673c.tar.gz |
V4L/DVB (13948): radio: Correct use after free
It is not clear how to share the unlock in the case where the structure
containing the lock has to be freed. So the unlock is now duplicated, with
one copy moved before the free. The unlock label furthermore is no longer
useful and is thus deleted.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
expression x,e;
identifier f;
iterator I;
statement S;
@@
*kfree(x);
... when != &x
when != x = e
when != I(x,...) S
*x->f
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions