Re: BUG: lock held when returning to user space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 28 Oct 2007 12:12:19 +0100 (CET)
Jiri Kosina <[email protected]> wrote:

> On Sat, 27 Oct 2007, Andrew Morton wrote:
> 
> > It's a fairly daft thing to do.  I think it'd be saner to teach rtc about
> > test_and_set_bit() personally..  
> 
> 
> From: Jiri Kosina <[email protected]>
> 
> RTC: convert mutex to bitfield
> 
> RTC code is using mutex to assure exclusive access to /dev/rtc.
> This is however wrong usage, as it leaves the mutex locked when
> returning into userspace, which is unacceptable.
> 
> Convert rtc->char_lock into bit operation.
> 
> Signed-off-by: Jiri Kosina <[email protected]>


 Acked-by: Alessandro Zummo <[email protected]>

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux