linux/drivers/staging/fsl-mc/bus
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
..
dpio staging: fsl-mc/dpio: Fix incorrect comparison 2017-10-03 18:34:56 +02:00
Kconfig staging: fsl-mc: add explicit dependencies for compile-tested arches 2017-08-14 15:18:25 -07:00
Makefile staging: fsl-mc: remove dpmng API files 2017-06-29 16:38:52 +02:00
dpbp-cmd.h staging: fsl-mc: enclose macro params in parens 2017-06-13 12:14:12 +02:00
dpbp.c staging: fsl-mc: move mc-cmd.h contents in the public header 2017-06-29 16:38:53 +02:00
dpcon-cmd.h staging: fsl-mc: bus: add DPCON object APIs 2017-04-28 14:25:17 +02:00
dpcon.c staging: fsl-mc: move mc-cmd.h contents in the public header 2017-06-29 16:38:53 +02:00
dpmcp-cmd.h staging: fsl-mc: enclose macro params in parens 2017-06-13 12:14:12 +02:00
dpmcp.c staging: fsl-mc: move mc-cmd.h contents in the public header 2017-06-29 16:38:53 +02:00
dpmcp.h staging: fsl-mc: dpmcp: drop unused APIs 2017-02-09 13:26:01 +01:00
dpmng-cmd.h staging: fsl-mc: enclose macro params in parens 2017-06-13 12:14:12 +02:00
dprc-cmd.h staging: fsl-mc: enclose macro params in parens 2017-06-13 12:14:12 +02:00
dprc-driver.c staging: fsl-mc: be consistent when checking strcmp() returns 2017-08-23 16:22:32 -07:00
dprc.c staging: fsl-mc: make dprc.h header private 2017-06-29 16:38:53 +02:00
dprc.h staging: fsl-mc: make dprc.h header private 2017-06-29 16:38:53 +02:00
fsl-mc-allocator.c Revert "staging: fsl-mc: be consistent when checking strcmp() return" 2017-08-16 11:12:06 -07:00
fsl-mc-bus.c staging: fsl-mc: Convert to using %pOF instead of full_name 2017-07-30 07:59:32 -07:00
fsl-mc-msi.c Staging: fsl-mc: remove unnecessary parenthesis 2017-09-29 15:22:51 +02:00
fsl-mc-private.h staging: fsl-mc: make dprc.h header private 2017-06-29 16:38:53 +02:00
irq-gic-v3-its-fsl-mc-msi.c staging: fsl-mc: fix compilation with non-generic msi domain ops 2017-07-30 08:23:27 -07:00
mc-io.c staging: fsl-mc: fix resource_size.cocci warnings 2017-07-30 08:25:03 -07:00
mc-sys.c staging: fsl-mc: make the driver compile on 32-bit 2017-07-30 08:23:28 -07:00