mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 04:39:02 +02:00
saa7164_dev_setup() adds the device to the global saa7164_devlist before
requesting the PCI BAR memory regions.
If get_resources() fails, saa7164_dev_setup() decrements the device count
and returns an error, but leaves the device on saa7164_devlist. The probe
error path then frees the device, leaving a dangling entry on the global
list.
Reuse the existing MMIO mapping error path to remove the device from
saa7164_devlist and decrement the device count before returning.
Also release BAR0 if it was successfully requested but the BAR2 request
fails.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| saa7164-api.c | ||
| saa7164-buffer.c | ||
| saa7164-bus.c | ||
| saa7164-cards.c | ||
| saa7164-cmd.c | ||
| saa7164-core.c | ||
| saa7164-dvb.c | ||
| saa7164-encoder.c | ||
| saa7164-fw.c | ||
| saa7164-i2c.c | ||
| saa7164-reg.h | ||
| saa7164-types.h | ||
| saa7164-vbi.c | ||
| saa7164.h | ||