Thread (3 messages) flat view 3 messages, 3 authors, 2021-10-14

Re: [PATCH net] nfc: fix error handling of nfc_proto_register()

From: Krzysztof Kozlowski <hidden>
Date: 2021-10-13 09:54:09
Also in: lkml

On 13/10/2021 05:49, Ziyang Xuan wrote:
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 <redacted>
---
 net/nfc/af_nfc.c | 3 +++
 1 file changed, 3 insertions(+)

Reviewed-by: Krzysztof Kozlowski <redacted>


Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help