i4l: fix random freezes with AVM B1 drivers
authorKarsten Keil <kkeil@suse.de>
Thu, 18 Oct 2007 10:04:31 +0000 (03:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Nov 2007 17:25:56 +0000 (09:25 -0800)
commitd1eb63c36f6476c83af56aab06bec0680b9de459
treeac5663b0eea93c5d9947781f32d41147bf815cca
parent0778a8974c2a8088cece925034edad871afde9a9
i4l: fix random freezes with AVM B1 drivers

patch 9713d9e650045f7f2afd81d58a068827be306993 in mainline.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/isdn/hardware/avm/b1.c