[BUG]: circular locking depedency in videobuf code

2007-09-09 Thread Maxim Levitsky
Hi, I found a bug (circular lock dependency) in generic videobuf code: Suppose app has two threads, and one calls munmap() on a video buffer , and second calls VIDIOC_QBUF ioctl. (The actual app that does that is kdetv on exit) thread1: takes current->mm->mmap_sem, then takes q->lock

[BUG]: circular locking depedency in videobuf code

2007-09-09 Thread Maxim Levitsky
Hi, I found a bug (circular lock dependency) in generic videobuf code: Suppose app has two threads, and one calls munmap() on a video buffer , and second calls VIDIOC_QBUF ioctl. (The actual app that does that is kdetv on exit) thread1: takes current-mm-mmap_sem, then takes q-lock thread2: