mirror of
https://github.com/torvalds/linux.git
synced 2026-10-17 06:20:02 +02:00
In cx8802_register_driver(), when drv->probe(driver) fails (non-zero), the allocated cx8802_driver struct is freed neither in the else branch nor later in cx8802_unregister_driver() (which only frees entries that were added to dev->drvlist on success). Each failed probe leaks the driver struct. Add kfree(driver) in the else branch to fix the leak. Signed-off-by: Chen Changcheng <chenchangcheng@kylinos.cn> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org> |
||
|---|---|---|
| .. | ||
| cx88-alsa.c | ||
| cx88-blackbird.c | ||
| cx88-cards.c | ||
| cx88-core.c | ||
| cx88-dsp.c | ||
| cx88-dvb.c | ||
| cx88-i2c.c | ||
| cx88-input.c | ||
| cx88-mpeg.c | ||
| cx88-reg.h | ||
| cx88-tvaudio.c | ||
| cx88-vbi.c | ||
| cx88-video.c | ||
| cx88-vp3054-i2c.c | ||
| cx88-vp3054-i2c.h | ||
| cx88.h | ||
| Kconfig | ||
| Makefile | ||