Message ID | CAAEAJfAo8-efB-ZopydXFdRZDKsTKcSzx1vkaJwcpDQQ1Eiivw@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> writes: > How about this one (untested) ? > > diff --git a/drivers/media/pci/tw686x/tw686x-video.c > b/drivers/media/pci/tw686x/tw686x-video.c > index c3fafa97b2d0..77b8d2dbd995 100644 > --- a/drivers/media/pci/tw686x/tw686x-video.c > +++ b/drivers/media/pci/tw686x/tw686x-video.c > @@ -86,6 +86,9 @@ static void tw686x_memcpy_dma_free(struct > tw686x_video_channel *vc, > struct pci_dev *pci_dev; > unsigned long flags; > > + /* Make sure this channel is initialized */ > + if (!dev) > + return; Whatever you wish. Just make sure it doesn't bomb out by default, when one happens to have such a card in his or her machine.
Hans Verkuil <hverkuil@xs4all.nl> writes:
> Any progress on this? I gather I can expect a new patch from someone?
Well, the issue is trivial and very easy to test, though not present
on common x86 hw. That patch I've sent fixes it, but I'm not the one who
decides.
On 23 June 2017 at 05:18, Krzysztof Hałasa <khalasa@piap.pl> wrote: > Hans Verkuil <hverkuil@xs4all.nl> writes: > >> Any progress on this? I gather I can expect a new patch from someone? > > Well, the issue is trivial and very easy to test, though not present > on common x86 hw. That patch I've sent fixes it, but I'm not the one who > decides. If you can re-submit your patch addressing all the comments, I'd be happy to Ack it. As it stands, with the wrong subject style and without a commit log, it's a NAK on my side.
diff --git a/drivers/media/pci/tw686x/tw686x-video.c b/drivers/media/pci/tw686x/tw686x-video.c index c3fafa97b2d0..77b8d2dbd995 100644 --- a/drivers/media/pci/tw686x/tw686x-video.c +++ b/drivers/media/pci/tw686x/tw686x-video.c @@ -86,6 +86,9 @@ static void tw686x_memcpy_dma_free(struct tw686x_video_channel *vc, struct pci_dev *pci_dev; unsigned long flags; + /* Make sure this channel is initialized */ + if (!dev) + return; /* Check device presence. Shouldn't really happen! */ spin_lock_irqsave(&dev->lock, flags);