diff options
author | Jing Xiangfeng <jingxiangfeng@huawei.com> | 2020-11-12 09:49:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-30 13:53:10 +0300 |
commit | 7f1cae8e15a68be2724777356fb2aba4a592b39d (patch) | |
tree | 39f765a5566d70e8b7c753e7bfb1221e7a34d2c0 /scripts | |
parent | 63c4e010a53066fa8530ffd21324ebcdb7b0d87b (diff) | |
download | linux-7f1cae8e15a68be2724777356fb2aba4a592b39d.tar.xz |
staging: gasket: interrupt: fix the missed eventfd_ctx_put() in gasket_interrupt.c
[ Upstream commit ab5b769a23af12a675b9f3d7dd529250c527f5ac ]
gasket_interrupt_set_eventfd() misses to call eventfd_ctx_put() in an
error path. We check interrupt is valid before calling
eventfd_ctx_fdget() to fix it.
There is the same issue in gasket_interrupt_clear_eventfd(), Add the
missed function call to fix it.
Fixes: 9a69f5087ccc ("drivers/staging: Gasket driver framework + Apex driver")
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Link: https://lore.kernel.org/r/20201112064924.99680-1-jingxiangfeng@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions