From: Dan Carpenter Date: Fri, 13 Sep 2013 07:56:25 +0000 (+0300) Subject: skd: use after free bugs in debug code X-Git-Tag: next-20130919~32^2~3^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e04421688ca6c87e6d28eca1a6b889f361e930a3;p=karo-tx-linux.git skd: use after free bugs in debug code We've freed "skdev" but the debug code dereferences it. I've just removed the printk() entirely. Signed-off-by: Dan Carpenter Signed-off-by: Jens Axboe --- diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index dfd05a941e67..f892d95dd884 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c @@ -4919,8 +4919,6 @@ static void skd_destruct(struct skd_device *skdev) VPRINTK(skdev, "skdev\n"); kfree(skdev); - - DPRINTK(skdev, "VICTORY\n"); } static void skd_free_skcomp(struct skd_device *skdev)