Re: [alsa-devel] [RFC PATCH 5/7] soundwire: add debugfs support

From: Greg KH
Date: Tue May 07 2019 - 01:57:01 EST

On Mon, May 06, 2019 at 10:08:10PM +0530, Vinod Koul wrote:
> Yes, but then device exit routine is supposed to do debugfs cleanup as
> well, so that would ensure these references are dropped at that point of
> time. Greg should that not take care of it or we *should* always do
> refcounting.

Always do refcounting. How else can you "guarantee" that it is safe?