diff options
| author | Daniel Scheller <d.scheller@gmx.net> | 2017-12-06 12:59:14 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-12-13 10:19:41 -0500 |
| commit | b32a2b42f76cdfd06b4b58a1ddf987ba329ae34e (patch) | |
| tree | 8f2fa43f8f2d90c6a8b9d01264a3f5a415fe4625 /tools/perf/scripts/python | |
| parent | 6738d3bbab999d7d9d77a185d62bd146d9a257f2 (diff) | |
| download | kernel-b32a2b42f76cdfd06b4b58a1ddf987ba329ae34e.tar.gz | |
media: ddbridge: improve error handling logic on fe attach failures
This change makes sure that demod frontends are always detached whenever
a tuner frontend attach failed. Achieve this by moving the detach-on-
failure logic at the end of dvb_input_attach(), and adding a goto to this
block on every tuner attach failure case, so if an error occurs, there are
no stray attached frontends left. As a side effect, this removes some
duplicated code.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
