Commit bd14c18
cx231xx-audio: fix init error path
commit fff1abc4d54e469140a699612b4db8d6397bfcba upstream.
Make sure to release the snd_card also on a late allocation error.
Fixes: e0d3baf ("V4L/DVB (10954): Add cx231xx USB driver")
Cc: Sri Deevi <Srinivasa.Deevi@conexant.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent f7c778f commit bd14c18
1 file changed
Lines changed: 14 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
| 674 | + | |
| 675 | + | |
678 | 676 | | |
679 | 677 | | |
680 | 678 | | |
| |||
688 | 686 | | |
689 | 687 | | |
690 | 688 | | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
695 | 692 | | |
696 | 693 | | |
697 | 694 | | |
| |||
710 | 707 | | |
711 | 708 | | |
712 | 709 | | |
713 | | - | |
714 | | - | |
715 | | - | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
716 | 714 | | |
717 | 715 | | |
718 | 716 | | |
| |||
726 | 724 | | |
727 | 725 | | |
728 | 726 | | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
729 | 732 | | |
730 | 733 | | |
731 | 734 | | |
| |||
0 commit comments