summaryrefslogtreecommitdiffstats
path: root/tools/leds
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2022-12-23 11:37:18 +0400
committerDavid S. Miller <davem@davemloft.net>2022-12-26 09:09:23 +0000
commitdf49908f3c52d211aea5e2a14a93bbe67a2cb3af (patch)
tree87eff50bbe80e6c3eaa31c317625dd3a706961f6 /tools/leds
parent30e725537546248bddc12eaac2fe0a258917f190 (diff)
downloadlinux-df49908f3c52d211aea5e2a14a93bbe67a2cb3af.tar.bz2
nfc: Fix potential resource leaks
nfc_get_device() take reference for the device, add missing nfc_put_device() to release it when not need anymore. Also fix the style warnning by use error EOPNOTSUPP instead of ENOTSUPP. Fixes: 5ce3f32b5264 ("NFC: netlink: SE API implementation") Fixes: 29e76924cf08 ("nfc: netlink: Add capability to reply to vendor_cmd with data") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/leds')
0 files changed, 0 insertions, 0 deletions