diff options
| author | Poddar, Siddarth <siddpodd@codeaurora.org> | 2017-04-05 15:49:02 +0530 |
|---|---|---|
| committer | Sandeep Puligilla <spuligil@codeaurora.org> | 2017-04-06 14:11:15 -0700 |
| commit | ea6d909036765536bf86d2c3475b33d70810fd24 (patch) | |
| tree | 12b6a57b1b397c2a2dbadb42e21df118d48a3208 | |
| parent | 932d0a70ada7bdcf2a5484b1180158679142516d (diff) | |
qcacld-3.0: Return the error value if pktlog is not enabled
When pktlog enable gives an error as part of pktlog_release,
then return the error value.
CRs-Fixed: 2028068
Change-Id: I10d3e3db78abf1fb756bb066c6e09ab93412ec45
| -rw-r--r-- | core/utils/pktlog/linux_ac.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/utils/pktlog/linux_ac.c b/core/utils/pktlog/linux_ac.c index d56659f79f26..92cbda1ce240 100644 --- a/core/utils/pktlog/linux_ac.c +++ b/core/utils/pktlog/linux_ac.c @@ -632,11 +632,12 @@ static int pktlog_release(struct inode *i, struct file *f) ret = pl_dev->pl_funcs->pktlog_enable( (struct hif_opaque_softc *)scn, pl_info->log_state, cds_is_packet_log_enabled(), 0, 1); - if (ret != 0) { - pr_warn("%s: pktlog cannot be enabled", __func__); - } + if (ret != 0) + pr_warn("%s: pktlog cannot be enabled. ret value %d\n", + __func__, ret); + pl_info->curr_pkt_state = PKTLOG_OPR_NOT_IN_PROGRESS; - return 0; + return ret; } #ifndef MIN |
