Commit 9cf8766
USB: dwc3: qcom: fix ACPI platform device leak
Make sure to free the "urs" platform device, which is created for some
ACPI platforms, on probe errors and on driver unbind.
Compile-tested only.
Fixes: c25c210 ("usb: dwc3: qcom: add URS Host support for sdm845 ACPI boot")
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Acked-by: Andrew Halaney <ahalaney@redhat.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Link: https://lore.kernel.org/r/20231117173650.21161-4-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 9feefbf commit 9cf8766
1 file changed
Lines changed: 30 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
767 | | - | |
| 766 | + | |
768 | 767 | | |
| 768 | + | |
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
788 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
789 | 795 | | |
790 | | - | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
791 | 808 | | |
792 | 809 | | |
793 | 810 | | |
| |||
871 | 888 | | |
872 | 889 | | |
873 | 890 | | |
874 | | - | |
| 891 | + | |
875 | 892 | | |
876 | 893 | | |
877 | 894 | | |
878 | 895 | | |
879 | 896 | | |
880 | | - | |
| 897 | + | |
881 | 898 | | |
882 | 899 | | |
883 | 900 | | |
| |||
896 | 913 | | |
897 | 914 | | |
898 | 915 | | |
899 | | - | |
| 916 | + | |
900 | 917 | | |
901 | 918 | | |
902 | 919 | | |
| |||
935 | 952 | | |
936 | 953 | | |
937 | 954 | | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
938 | 958 | | |
939 | 959 | | |
940 | 960 | | |
| |||
961 | 981 | | |
962 | 982 | | |
963 | 983 | | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
964 | 987 | | |
965 | 988 | | |
966 | 989 | | |
| |||
0 commit comments