Re: [PATCH 4.4 49/72] media: usbtv: prevent double free in error case

From: Oliver Neukum
Date: Tue May 15 2018 - 06:00:13 EST


Am Montag, den 14.05.2018, 18:41 +0100 schrieb Ben Hutchings:
>
> Shouldn't this bump the V4L2 device's reference count, i.e.:
>
> v4l2_device_get(&usbtv->v4l2_dev);
>

<censored>

You are right. Mixing refcounting sucks. I am preparing a patch.

Regards
Oliver