diff options
author | Oscar Carter <oscar.carter@gmx.com> | 2020-05-01 17:51:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-05 12:36:05 +0200 |
commit | 769acc3656d93aaacada814939743361d284fd87 (patch) | |
tree | 6b5ca38f70eb00ca8bac12d35abc41164f94892f /drivers/w1/Makefile | |
parent | 3c5c0805ac925f2f8c68eeb1ba0f8a796a7b4525 (diff) | |
download | linux-stable-769acc3656d93aaacada814939743361d284fd87.tar.gz linux-stable-769acc3656d93aaacada814939743361d284fd87.tar.bz2 linux-stable-769acc3656d93aaacada814939743361d284fd87.zip |
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: 9a69f5087ccc2 ("drivers/staging: Gasket driver framework + Apex driver")
Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Richard Yeh <rcy@google.com>
Link: https://lore.kernel.org/r/20200501155118.13380-1-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/Makefile')
0 files changed, 0 insertions, 0 deletions