OSDN Git Service

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)
commit7cc6dfd076e84359a96a851c41ac8dc696565a3f
tree768e4fec10d38fb95ee849953031ee639142cef6
parent97b23455ccd53a632585d0fd06ff9d30877c810a
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: 9a69f5087ccc ("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