On 9/10/21 1:45 AM, Greg KH wrote:
You now have bumped the reference count on this structure. Where do you decrement it when you are finished with it?
That happens when I "unlink" the block device from the LED in blkdev_disk_unlink_locked() at ledtrig-blkdev.c:410. (And also in the error path of link_device_store() at ledtrig-blkdev.c:372.) -- ======================================================================== In Soviet Russia, Google searches you! ========================================================================