[patch] char/raw.c locking on error

From: Dan Carpenter
Date: Fri Mar 27 2009 - 06:31:53 EST


There is an unlock_kernel missing.

This bug was found by smatch (http://repo.or.cz/w/smatch.git/). Compile
tested only, sorry.

regards,
dan carpenter

Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>

--- orig/drivers/char/raw.c 2009-03-26 22:40:27.000000000 +0300
+++ devel/drivers/char/raw.c 2009-03-26 22:41:20.000000000 +0300
@@ -90,6 +90,7 @@
blkdev_put(bdev, filp->f_mode);
out:
mutex_unlock(&raw_mutex);
+ unlock_kernel();
return err;
}

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/