Commit b79b608
committed
drm/tegra: sor: Fix AUX device reference leak
In the case where the AUX provides an I2C-over-AUX DDC channel, a
reference is taken on the AUX parent device of the DDC channel rather
than the DDC channel like it would be for regular I2C controllers. To
make sure the correct reference is dropped, move the unreferencing code
into the SOR driver and make sure not to drop the I2C adapter reference
in that case.
Signed-off-by: Thierry Reding <treding@nvidia.com>1 parent 1d15a10 commit b79b608
2 files changed
Lines changed: 20 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | 183 | | |
186 | 184 | | |
187 | 185 | | |
188 | | - | |
189 | | - | |
| 186 | + | |
190 | 187 | | |
191 | 188 | | |
192 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3745 | 3745 | | |
3746 | 3746 | | |
3747 | 3747 | | |
3748 | | - | |
3749 | | - | |
3750 | | - | |
3751 | | - | |
3752 | | - | |
3753 | | - | |
| 3748 | + | |
| 3749 | + | |
3754 | 3750 | | |
3755 | 3751 | | |
3756 | 3752 | | |
| |||
3778 | 3774 | | |
3779 | 3775 | | |
3780 | 3776 | | |
3781 | | - | |
| 3777 | + | |
3782 | 3778 | | |
3783 | 3779 | | |
3784 | | - | |
3785 | | - | |
3786 | | - | |
| 3780 | + | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
3787 | 3784 | | |
3788 | 3785 | | |
3789 | 3786 | | |
| |||
3970 | 3967 | | |
3971 | 3968 | | |
3972 | 3969 | | |
| 3970 | + | |
| 3971 | + | |
| 3972 | + | |
3973 | 3973 | | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
3974 | 3978 | | |
3975 | 3979 | | |
3976 | 3980 | | |
| |||
3988 | 3992 | | |
3989 | 3993 | | |
3990 | 3994 | | |
| 3995 | + | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
| 3999 | + | |
3991 | 4000 | | |
3992 | 4001 | | |
3993 | 4002 | | |
| |||
0 commit comments