[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0903262243150.4167@usbsys.site>
Date: Fri, 27 Mar 2009 13:28:48 +0300 (EAT)
From: Dan Carpenter <error27@...il.com>
To: linux-kernel@...r.kernel.org
cc: eteo@...hat.com
Subject: [patch] char/raw.c locking on error
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@...il.com>
--- 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists