On Tue Jun 16 14:00:12 2026 +0200, Hans Verkuil wrote:
> In em28xx_free_device() dev_info passed &dev->intf->dev,
> but that device can be freed already.
> 
> Just use pr_info instead.
> 
> Signed-off-by: Hans Verkuil <[email protected]>
> Tested-by: Hans Verkuil <[email protected]>
> Signed-off-by: Mauro Carvalho Chehab <[email protected]>

Patch committed.

Thanks,
Mauro Carvalho Chehab

 drivers/media/usb/em28xx/em28xx-cards.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/media/usb/em28xx/em28xx-cards.c 
b/drivers/media/usb/em28xx/em28xx-cards.c
index c71cce963850..b94b00456bcd 100644
--- a/drivers/media/usb/em28xx/em28xx-cards.c
+++ b/drivers/media/usb/em28xx/em28xx-cards.c
@@ -3782,7 +3782,7 @@ void em28xx_free_device(struct kref *ref)
 {
        struct em28xx *dev = kref_to_dev(ref);
 
-       dev_info(&dev->intf->dev, "Freeing device\n");
+       pr_info("%s: Freeing device\n", dev->name);
 
        if (!dev->disconnected)
                em28xx_release_resources(dev);
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to