From: Chris Rankin Date: Sat, 24 Sep 2011 19:54:58 +0000 (-0300) Subject: [media] em28xx: fix deadlock when unplugging and replugging a DVB adapter X-Git-Tag: v3.2-rc1~112^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b868a537b675eed2ba84bbeca4c8557ebf9e0156;p=pandora-kernel.git [media] em28xx: fix deadlock when unplugging and replugging a DVB adapter This fixes the deadlock that occurs with either multiple PCTV 290e adapters or when a single PCTV 290e adapter is replugged. For DVB devices, the device lock must now *not* be held when adding/removing either a device or an extension to the respective lists. (Because em28xx_init_dvb() will want to take the lock instead). Conversely, for Audio-Only devices, the device lock *must* be held when adding/removing either a device or an extension to the respective lists. Signed-off-by: Chris Rankin Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed