Skip to content
Commit ead221eb authored by Clark Wang's avatar Clark Wang Committed by Meng Li
Browse files

LF-1723: spi: lpspi: run transfer speed_hz sanity check



commit 779ed133e9da4c649d9586f6a88049cf884c081a from
git://source.codeaurora.org/external/qoriq/qoriq-components/linux

Coverity reports Division or modulo by zero potential issue(CWE-369)
about the provided transfer speed_hz. Run sanity check first to avoid this
problem.

Signed-off-by: default avatarHan Xu <han.xu@nxp.com>
Signed-off-by: default avatarClark Wang <xiaoning.wang@nxp.com>
Reviewed-by: default avatarJun Li <jun.li@nxp.com>
Acked-by: default avatarJason Liu <jason.hui.liu@nxp.com>
Signed-off-by: default avatarMeng Li <Meng.Li@windriver.com>
parent 1ad5c89e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment