From: Jens Axboe Date: Fri, 8 Oct 2010 10:03:33 +0000 (+0200) Subject: Fix buggy early free of bc X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a8527ea747463906e37e1c73296958ed6a7c5e74;p=binject.git Fix buggy early free of bc Signed-off-by: Jens Axboe --- diff --git a/main.c b/main.c index 5831cd5..012a680 100644 --- a/main.c +++ b/main.c @@ -504,6 +504,7 @@ static ssize_t b_dev_write(struct file *file, const char __user *buf, done += sizeof(struct b_user_cmd); buf += sizeof(struct b_user_cmd); total--; + bc = NULL; } if (bc)