Harman Kalra aedd054c5c drivers: check interrupt file descriptor validity
This patch fixes coverity issue by adding a check for negative value to
avoid bad bit shift operation and other invalid use of file descriptors.

Coverity issue: 373717, 373697, 373685
Coverity issue: 373723, 373720, 373719, 373718, 373715, 373714, 373713
Coverity issue: 373710, 373707, 373706, 373705, 373704, 373701, 373700
Coverity issue: 373698, 373695, 373692, 373690, 373689
Coverity issue: 373722, 373721, 373709, 373702, 373696
Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle")

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: David Marchand <david.marchand@redhat.com>
2021-11-08 17:32:42 +01:00
..
2018-04-11 01:47:47 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:18 +02:00
2021-05-12 14:54:16 +02:00
2018-04-27 18:00:59 +01:00
2018-04-11 01:47:47 +02:00
2021-10-22 18:15:38 +02:00
2018-04-11 01:47:47 +02:00
2021-08-17 08:37:52 +02:00