Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a7038bdd authored by Atish Kumar Patra's avatar Atish Kumar Patra Committed by Gerrit - the friendly Code Review server
Browse files

char: msm_smd_pkt: Rate limit error logs in smd pkt functions



If any of userpsace component invokes smd_pkt functions in an undesired
manner, it may result in signification number of  error logs.
As a result system might be watchdogged leading to a crash.

To minimize the number of error logs, pr_err is replaced with
pr_err_ratelimited to print error logs in a controlled manner.
This is only updated in fops functions which are called by
user space functions. This fix only reduces the likelyhood
of an errant user space program causing a watchdog. It is always
advisable to invoke smd_pkt functions in appropriate manner.

CRs-Fixed: 716604
Change-Id: I753afd83c3cd626f90ec9bfba1e227d85adbab42
Signed-off-by: default avatarAtish Kumar Patra <apatra@codeaurora.org>
parent 53a5295c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment