Skip to content

Commit 6d835a9

Browse files
jhovoldgregkh
authored andcommitted
drm/gma500/oaktrail_hdmi: fix i2c adapter leak on setup
commit 950953f774b3f69da6f413e045ef075e1f3da2df upstream. Make sure to drop the reference taken to the I2C adapter (and its module) when setting up HDMI to allow the adapter to be deregistered. Fixes: 1b082cc ("gma500: Add Oaktrail support") Cc: stable@vger.kernel.org # 3.3 Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Link: https://patch.msgid.link/20260508144446.59722-2-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9a34b94 commit 6d835a9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/gma500/oaktrail_hdmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ static int oaktrail_hdmi_get_modes(struct drm_connector *connector)
579579
} else {
580580
edid = (struct edid *)raw_edid;
581581
/* FIXME ? edid = drm_get_edid(connector, i2c_adap); */
582+
i2c_put_adapter(i2c_adap);
582583
}
583584

584585
if (edid) {

0 commit comments

Comments
 (0)