mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
pt3_probe() did not free one of IO mappings in case when one of them was successful while another one failed. The patch fixed that by using functions pcim_*. Also, it simplifies error handling through switching to devm_* functions. Found by Linux Driver Verification project (linuxtesting.org). Link: https://lore.kernel.org/linux-media/[email protected] Signed-off-by: Evgeny Novikov <[email protected]> Co-developed-by: Kirill Shilimanov <[email protected]> Signed-off-by: Kirill Shilimanov <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Tested-by: Akihiro Tsukada <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>