]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
skd: use after free bugs in debug code
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Sep 2013 07:56:25 +0000 (10:56 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Sep 2013 16:59:58 +0000 (10:59 -0600)
We've freed "skdev" but the debug code dereferences it.  I've just
removed the printk() entirely.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c

index dfd05a941e6727b7a92bfad5c6c31b56b6b41ce2..f892d95dd884847e8fab35d3e212922f9de1577e 100644 (file)
@@ -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)