Staging: easycap: use after free in easycap_delete()
authorDan Carpenter <error27@gmail.com>
Fri, 17 Jun 2011 10:25:09 +0000 (13:25 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Jul 2011 17:22:50 +0000 (10:22 -0700)
commit38d0cffefd3daaad6bc58a6212d16edeaa8ee1f0
treeef7a7e30bc428f952834b92a6e1babba557f19f2
parent981aabb1482c79014b3bc1a61f0c87bdbceae41d
Staging: easycap: use after free in easycap_delete()

The JOM() macro dereferences peasycap, so I moved the free down some
lines.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap_main.c