Messages in this thread | | | Subject | Re: [PATCH net] nfc: fix error handling of nfc_proto_register() | From | Krzysztof Kozlowski <> | Date | Wed, 13 Oct 2021 11:53:55 +0200 |
| |
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@huawei.com> > --- > net/nfc/af_nfc.c | 3 +++ > 1 file changed, 3 insertions(+) >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Best regards, Krzysztof
| |