Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0" * tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers: disp: msm: dsi: add null pointer check in dsi_display_dev_remove Conflicts: techpack/display/msm/dsi/dsi_display.c Change-Id: Ife03a5542c77ab531a902c5b7f6c07d6a867f9b6
This commit is contained in:
commit
e82fabf302
1 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
|
|
@ -6131,6 +6131,10 @@ int dsi_display_dev_remove(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
display = platform_get_drvdata(pdev);
|
||||
if (!display || !display->panel_node) {
|
||||
DSI_ERR("invalid display\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* decrement ref count */
|
||||
of_node_put(display->panel_node);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue