mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
qcacmn: Handle gracefully if scheduler cb is not registered
Currently when firmware crashes during driver load, message queue handlers for scheduler context are not registered. While handling the FW down event, driver posts the message to scheduler queue. Since the queue handler is not registered, it results in crash. To address this issue, handle the msg gracefully and return error in case callback is not registered. CRs-Fixed: 3251983 Change-Id: I5dd55e701cf332153dca1f6678271506b9690f6e
This commit is contained in:
parent
796e14de23
commit
6bcffd57bb
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
* above copyright notice and this permission notice appear in all
|
||||
|
|
@ -288,7 +288,7 @@ QDF_STATUS scheduler_post_msg_by_priority(uint32_t qid,
|
|||
}
|
||||
|
||||
if (!sched_ctx->queue_ctx.scheduler_msg_process_fn[qidx]) {
|
||||
QDF_DEBUG_PANIC("callback not registered for qid[%d]", que_id);
|
||||
sched_err("callback not registered for qid[%d]", que_id);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue