linux/drivers/staging/fsl-mc/bus/dpio
Ioana Radulescu 8dabf52ffb 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>
2017-10-03 18:34:56 +02:00
..
Makefile bus: fsl-mc: dpio: add the DPAA2 DPIO object driver 2017-03-14 11:19:52 +08:00
dpio-cmd.h bus: fsl-mc: dpio: add APIs for DPIO objects 2017-03-14 11:19:52 +08:00
dpio-driver.c bus: fsl-mc: dpio: add the DPAA2 DPIO object driver 2017-03-14 11:19:52 +08:00
dpio-driver.txt
dpio-service.c staging: fsl-mc/dpio: Fix incorrect comparison 2017-10-03 18:34:56 +02:00
dpio.c staging: fsl-mc: move mc-cmd.h contents in the public header 2017-06-29 16:38:53 +02:00
dpio.h bus: fsl-mc: dpio: add APIs for DPIO objects 2017-03-14 11:19:52 +08:00
qbman-portal.c staging: fsl-mc/dpio: Skip endianness conversion in portal config 2017-07-30 08:25:04 -07:00
qbman-portal.h bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2 2017-03-14 11:19:52 +08:00