public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* double unlock in rng_dev_read()
@ 2009-12-23 13:15 Dan Carpenter
  2009-12-23 14:36 ` Herbert Xu
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Carpenter @ 2009-12-23 13:15 UTC (permalink / raw)
  To: Matt Mackall; +Cc: Herbert Xu, linux-kernel

It seems like we unlock rng_mutex twice (2.6.33-rc1).

drivers/char/hw_random/core.c
   151                  mutex_unlock(&rng_mutex);
   152
   153                  if (need_resched())
   154                          schedule_timeout_interruptible(1);
   155
   156                  if (signal_pending(current)) {
   157                          err = -ERESTARTSYS;
   158                          goto out;
   159                  }
   160          }
   161  out_unlock:
   162          mutex_unlock(&rng_mutex);
 
regards,
dan carpenter

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-24 10:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 13:15 double unlock in rng_dev_read() Dan Carpenter
2009-12-23 14:36 ` Herbert Xu
2009-12-23 14:53   ` Dan Carpenter
2009-12-23 15:23     ` Herbert Xu
2009-12-24 10:51       ` Dan Carpenter

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