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

From: Krzysztof Kozlowski
Date: Wed Oct 13 2021 - 05:54:09 EST


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 <william.xuanziyang@xxxxxxxxxx>
> ---
> net/nfc/af_nfc.c | 3 +++
> 1 file changed, 3 insertions(+)
>


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx>


Best regards,
Krzysztof