i4l: fix random freezes with AVM B1 drivers
commit9713d9e650045f7f2afd81d58a068827be306993
authorKarsten Keil <kkeil@suse.de>
Thu, 18 Oct 2007 10:04:31 +0000 (18 03:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:17 +0000 (18 14:37 -0700)
treee4913e15b37f9ad5da9a037fac0f53f3a78cef64
parent0c42ea3f93b5684cf60ba0ac6810ad1f865954b0
i4l: fix random freezes with AVM B1 drivers

This fix the same issue which was debbuged for the C4 controller for the B1
versions.

The capilib_ function modify or traverse a linked list without locking.

This patch extends the existing locking to the calls of these function to
prevent access to a list which is in the middle of a modification.

Signed-off-by: Karsten Keil <kkeil@suse.de>
C: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/isdn/hardware/avm/b1.c