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:
Atish Kumar Patra <apatra@codeaurora.org>
Loading
Please register or sign in to comment