diff options
author | Ziyang Xuan <[email protected]> | 2021-10-13 11:49:32 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-10-13 17:32:38 -0700 |
commit | 0911ab31896f0e908540746414a77dd63912748d (patch) | |
tree | 84f7711856e1b7b588da69295d172aa0897cc24b /scripts/gdb/linux/utils.py | |
parent | 1f922d9e374f0ca7d1b241666c792f403c6120aa (diff) |
nfc: fix error handling of nfc_proto_register()
When nfc proto id is using, nfc_proto_register() return -EBUSY error
code, but forgot to unregister proto. Fix it by adding proto_unregister()
in the error handling case.
Fixes: c7fe3b52c128 ("NFC: add NFC socket family")
Signed-off-by: Ziyang Xuan <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions