summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorIoana Radulescu <ruxandra.radulescu@nxp.com>2017-09-28 17:10:33 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-03 19:34:56 +0300
commit8dabf52ffb6445fa5bcc8b6d2ecb615f60d0dd12 (patch)
tree41177623a4daa6077ab20bfdbc1c9725002a4228 /include/linux
parentabd4b78793d12691380f95bf620d47f20259b44d (diff)
downloadlinux-8dabf52ffb6445fa5bcc8b6d2ecb615f60d0dd12.tar.xz
staging: fsl-mc/dpio: Fix incorrect comparison
For some dpio functions, a cpu id parameter value of -1 is valid and means "any". But when trying to validate this param value against an upper limit, in this case num_possible_cpus(), we risk obtaining the wrong result due to an implicit cast. Avoid an incorrect check result by explicitly comparing the cpu id with the "any" value before verifying the upper bound. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions