diff options
| author | Jonathan Nieder <[email protected]> | 2011-05-01 06:29:56 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2011-05-20 09:29:37 -0300 |
| commit | 1d6213ab995c61f7d1d81cf6cf876acf15d6e714 (patch) | |
| tree | 72ebdfa1d65066a6cd5361ee605a48e2dfcda4b2 /tools/perf/scripts/python | |
| parent | 1fe70e963028f34ba5e32488a7870ff4b410b19b (diff) | |
[media] cx88: hold device lock during sub-driver initialization
cx8802_blackbird_probe makes a device node for the mpeg sub-device
before it has been added to dev->drvlist. If the device is opened
during that time, the open succeeds but request_acquire cannot be
called, so the reference count remains zero. Later, when the device
is closed, the reference count becomes negative --- uh oh.
Close the race by holding core->lock during probe and not releasing
until the device is in drvlist and initialization finished.
Previously the BKL prevented this race.
Reported-by: Andreas Huber <[email protected]>
Tested-by: Andi Huber <[email protected]>
Tested-by: Marlon de Boer <[email protected]>
Cc: [email protected]
Signed-off-by: Jonathan Nieder <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions