From: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
To: Andrey Konovalov <andreyknvl@google.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Cc: Dmitry Vyukov <dvyukov@google.com>,
Kostya Serebryany <kcc@google.com>,
syzkaller <syzkaller@googlegroups.com>,
"Gustavo A. R. Silva" <garsilva@embeddedor.com>
Subject: Re: usb/media/em28xx: use-after-free in em28xx_dvb_fini
Date: Tue, 7 Nov 2017 15:18:50 -0600 [thread overview]
Message-ID: <20171107211850.GA17663@embeddedor.com> (raw)
In-Reply-To: <CAAeHK+xNemb9-+pqifrXd5qsnEvbS8h+cgAgy0FhzL1A7FRfJA@mail.gmail.com>
Hi Andrey,
Could you please try this patch?
Thank you
Gustavo A. R. Silva
---
drivers/media/usb/em28xx/em28xx-dvb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c
index 4a7db62..fc3fb92 100644
--- a/drivers/media/usb/em28xx/em28xx-dvb.c
+++ b/drivers/media/usb/em28xx/em28xx-dvb.c
@@ -2073,6 +2073,9 @@ static int em28xx_dvb_fini(struct em28xx *dev)
struct em28xx_dvb *dvb;
struct i2c_client *client;
+ if (!dev)
+ return 0;
+
if (dev->is_audio_only) {
/* Shouldn't initialize IR for this interface */
return 0;
--
2.7.4
next parent reply other threads:[~2017-11-07 21:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAeHK+xNemb9-+pqifrXd5qsnEvbS8h+cgAgy0FhzL1A7FRfJA@mail.gmail.com>
2017-11-07 21:18 ` Gustavo A. R. Silva [this message]
2017-11-08 15:57 ` usb/media/em28xx: use-after-free in em28xx_dvb_fini Andrey Konovalov
2017-11-08 16:03 ` Gustavo A. R. Silva
2017-11-08 16:04 ` Andrey Konovalov
2017-11-08 16:22 ` Gustavo A. R. Silva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171107211850.GA17663@embeddedor.com \
--to=garsilva@embeddedor.com \
--cc=andreyknvl@google.com \
--cc=dvyukov@google.com \
--cc=kcc@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=syzkaller@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox