mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] char/raw.c locking on error
@ 2009-03-27 10:28 Dan Carpenter
  2009-03-27 15:48 ` Jonathan Corbet
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Carpenter @ 2009-03-27 10:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: eteo

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@gmail.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;
 }
 

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <ckhDP-7Ey-1@gated-at.bofh.it>]

end of thread, other threads:[~2009-03-28  0:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-27 10:28 [patch] char/raw.c locking on error Dan Carpenter
2009-03-27 15:48 ` Jonathan Corbet
2009-03-27 21:36   ` Michael Tokarev
2009-03-27 21:44     ` Jonathan Corbet
2009-03-28  0:23     ` Alan Cox
     [not found] <ckhDP-7Ey-1@gated-at.bofh.it>
     [not found] ` <ckmtX-6ZA-25@gated-at.bofh.it>
     [not found]   ` <ckrWP-7iQ-33@gated-at.bofh.it>
     [not found]     ` <cks6g-7wu-13@gated-at.bofh.it>
2009-03-27 23:49       ` Bodo Eggert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®