staging: goldfish: Call free_irq in error path

If misc_register failed in goldfish_audio_probe, the already requested
IRQ wouldn't get freed. Add a call to free_irq() like there is in
goldfish_audio_remove().

Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Tuomas Tynkkynen 2014-04-08 09:15:22 +03:00 коммит произвёл Greg Kroah-Hartman
Родитель 5ed0a8e667
Коммит ff8ebe6448
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -334,6 +334,7 @@ static int goldfish_audio_probe(struct platform_device *pdev)
return 0; return 0;
err_misc_register_failed: err_misc_register_failed:
free_irq(data->irq, data);
err_request_irq_failed: err_request_irq_failed:
dma_free_coherent(&pdev->dev, COMBINED_BUFFER_SIZE, dma_free_coherent(&pdev->dev, COMBINED_BUFFER_SIZE,
data->buffer_virt, data->buffer_phys); data->buffer_virt, data->buffer_phys);