]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7712): pvrusb2: Close connect/disconnect race
authorMike Isely <isely@pobox.com>
Mon, 7 Apr 2008 05:22:43 +0000 (02:22 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:48 +0000 (14:09 -0300)
commit3bc37a198d6528636190198f83173a8551c55219
tree8baf83788707e1488918ba00c7430b6f7b0a9d45
parent845a346a9114d1092f06bbb7332777a9f5758d3d
V4L/DVB (7712): pvrusb2: Close connect/disconnect race

If a disconnect happens before initialization is completed, the
pvrusb2 driver can accidentally touch dangling pointers.  The whole
initialization function must be protected by the big_lock, and once
inside that lock, the initialization function should abort if it is
discovered that a disconnect has already taken place.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-hdw.c