Re: [PATCH net-next v3 1/2] nfc: llcp_core: Hold a ref to llcp_local->dev when holding a ref to llcp_local

From: Siddh Raman Pant
Date: Tue Dec 05 2023 - 12:25:44 EST


On Tue, 05 Dec 2023 22:51:17 +0530, Siddh Raman Pant wrote:
> I agree, it was something I thought about as well. There should be a
> new function for refcount increment. Maybe the existing one could be
> renamed to nfc_get_device_from_idx() and a new nfc_get_device() be
> defined.

Or nfc_find_device() instead of nfc_get_device_from_idx().

Thanks,
Siddh