disp: msm: dp: Release connector reference after reading crc frame value

This change decrements the specific drm connector's reference count
after it has been used for reading crc frame value. Without this
change, there might be a chance of a connector's reference count
still remaining positive, even if it is not accessed anywhere
further in code.

Change-Id: I9058ca046fa114bc10159045f98c40ac68ade751
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
This commit is contained in:
Soutrik Mukhopadhyay
2023-06-02 14:59:06 +05:30
committed by Gerrit - the friendly Code Review server
parent dfc4131bc6
commit d4ae697767

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/
@@ -393,6 +393,7 @@ static ssize_t dp_debug_read_crc(struct file *file, char __user *user_buff, size
sde_conn = to_sde_connector(drm_conn);
panel = sde_conn->drv_panel;
drm_connector_put(drm_conn);
} else {
panel = debug->panel;
}