Files
linux/drivers/staging
Oscar Carter 769acc3656 staging: gasket: Check the return value of gasket_get_bar_index()
Check the return value of gasket_get_bar_index function as it can return
a negative one (-EINVAL). If this happens, a negative index is used in
the "gasket_dev->bar_data" array.

Addresses-Coverity-ID: 1438542 ("Negative array index read")
Fixes: 9a69f5087c ("drivers/staging: Gasket driver framework + Apex driver")
Signed-off-by: Oscar Carter <[email protected]>
Cc: stable <[email protected]>
Reviewed-by: Richard Yeh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-05-05 12:36:05 +02:00
..
…
2020-03-30 17:22:01 -07:00
…
2020-03-23 08:01:20 +01:00
2020-03-27 10:01:11 +01:00
2020-03-27 10:01:11 +01:00