diff options
author | Pan Bian <bianpan2016@163.com> | 2021-01-21 07:37:45 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-03 23:26:01 +0100 |
commit | 9a4d367b27839c2eaf7841a3fef536ed156b9b2a (patch) | |
tree | dd412c01bea075e3fdc17b2a2ae8d444a3e39fa9 /net/switchdev/switchdev.c | |
parent | c929c76e98b0764a865aba1df635bc1cb1b8fc24 (diff) |
NFC: fix possible resource leak
commit d8f923c3ab96dbbb4e3c22d1afc1dc1d3b195cd8 upstream.
Put the device to avoid resource leak on path that the polling flag is
invalid.
Fixes: a831b9132065 ("NFC: Do not return EBUSY when stopping a poll that's already stopped")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210121153745.122184-1-bianpan2016@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions