]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: Gasket: fix a couple off by one bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Jul 2018 08:38:25 +0000 (11:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2018 15:35:42 +0000 (17:35 +0200)
commitf0575a82709ab750202a8dd431bc2abf6ffc618c
tree768e4fec10d38fb95ee849953031ee639142cef6
parent296fed152a5aae850e75f09467b2aad44aaf1301
Staging: Gasket: fix a couple off by one bugs

The > should be >= or we end up writing one element beyond the end of
the interrupt_data->eventfd_ctxs[] array.

Fixes: 2f1424fc8e2d ("drivers/staging: Gasket driver framework + Apex driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_interrupt.c