Re: [PATCH v2 17/23] counter: intel-qep: Convert to new counter registration

From: Jarkko Nikula
Date: Mon Dec 27 2021 - 10:02:45 EST


On 12/27/21 11:45, Uwe Kleine-König wrote:
This fixes device lifetime issues where it was possible to free a live
struct device.

Fixes: b711f687a1c1 ("counter: Add support for Intel Quadrature Encoder Peripheral")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
---
drivers/counter/intel-qep.c | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)

Should the Fixes tag rather be b6c50affda59 ("counter: Add character device interface") instead of when each drivers were introduced? I mean was it possible to hit the issue before /dev/counter was introduced?

Jarkko