mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
msm: mdss: fix NULL dereferencing issues in MDSS driver
This change fixes multiple potential NULL pointer dereferencing issues in HDMI module, reported by static code analysis of MDSS driver. Change-Id: If2b9d8a33562ddac40172dc0665c598df7669367 Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
This commit is contained in:
parent
01adda1c92
commit
f5c8091ffe
2 changed files with 4 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -1674,8 +1674,7 @@ int hdmi_edid_parser(void *input)
|
|||
|
||||
if (!edid_ctrl) {
|
||||
DEV_ERR("%s: invalid input\n", __func__);
|
||||
status = -EINVAL;
|
||||
goto error;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* reset edid data for new hdmi connection */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -964,7 +964,7 @@ static void adv7533_intr_work(struct work_struct *work)
|
|||
adv7533_intr_work_id);
|
||||
if (!pdata) {
|
||||
pr_err("%s: invalid input\n", __func__);
|
||||
goto reset;
|
||||
return;
|
||||
}
|
||||
|
||||
/* READ Interrupt registers */
|
||||
|
|
Loading…
Reference in a new issue