mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "cnss2: Avoid dereferencing pointer before NULL check"
This commit is contained in:
commit
f2a1ad8d8c
1 changed files with 4 additions and 4 deletions
|
|
@ -2661,13 +2661,13 @@ static ssize_t fs_ready_store(struct device *dev,
|
|||
cnss_pr_dbg("File system is ready, fs_ready is %d, count is %zu\n",
|
||||
fs_ready, count);
|
||||
|
||||
if (test_bit(QMI_BYPASS, &plat_priv->ctrl_params.quirks)) {
|
||||
cnss_pr_dbg("QMI is bypassed.\n");
|
||||
if (!plat_priv) {
|
||||
cnss_pr_err("plat_priv is NULL\n");
|
||||
return count;
|
||||
}
|
||||
|
||||
if (!plat_priv) {
|
||||
cnss_pr_err("plat_priv is NULL!\n");
|
||||
if (test_bit(QMI_BYPASS, &plat_priv->ctrl_params.quirks)) {
|
||||
cnss_pr_dbg("QMI is bypassed\n");
|
||||
return count;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue