From patchwork Tue Sep 22 02:29:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Ellingsworth X-Patchwork-Id: 49149 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8M2a2ps017708 for ; Tue, 22 Sep 2009 02:36:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751790AbZIVCf4 (ORCPT ); Mon, 21 Sep 2009 22:35:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751532AbZIVCf4 (ORCPT ); Mon, 21 Sep 2009 22:35:56 -0400 Received: from mail-yx0-f199.google.com ([209.85.210.199]:34039 "EHLO mail-yx0-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbZIVCfz (ORCPT ); Mon, 21 Sep 2009 22:35:55 -0400 Received: by yxe37 with SMTP id 37so3809794yxe.33 for ; Mon, 21 Sep 2009 19:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :reply-to:user-agent:mime-version:to:cc:subject:references :in-reply-to:content-type; bh=ifZIeptx3AgJacSJmvSCGQSxiPl+QgJXf4bA1CryQKg=; b=vclu8C+c/JBq6bVpdT99FJ1hDtr5BDYQwXlSaw5Q+eLop3yAvjItgSyg11NtMzQsEf K9nJLXTA7ApoQHU6+qB1/DoaBu+Dg+PW/dIOBdIP0b98XLHrISvB4cDNNtkfc2zy66sm muufD3qbSh3OgI3PZ71ATajlAWVP0kk2ZzsJ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type; b=UX1jvRwE0p/JunvU7hyvh08zFAjmuRUddH5aKd7XJl6U1mJDlb1OlW+cJv6ytBE1tv Ex85swZjwPnnsQrSCrVbTCg8iXr2OMOBYy/ZDzkCsC/iBf/4g3wfHLCNK8a9j9Tb9sv0 O6biyXdzjLCuTZk4iH4op26tIo/clsuakmSkI= Received: by 10.90.198.4 with SMTP id v4mr262009agf.79.1253586559349; Mon, 21 Sep 2009 19:29:19 -0700 (PDT) Received: from ?192.168.10.110? (cpe-71-72-62-249.neo.res.rr.com [71.72.62.249]) by mx.google.com with ESMTPS id 21sm462413agd.13.2009.09.21.19.29.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 21 Sep 2009 19:29:17 -0700 (PDT) Message-ID: <4AB8366E.1010905@gmail.com> Date: Mon, 21 Sep 2009 22:29:02 -0400 From: David Ellingsworth Reply-To: david@identd.dyndns.org User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) MIME-Version: 1.0 To: david@identd.dyndns.org CC: linux-media@vger.kernel.org, klimov.linux@gmail.com Subject: Re: [RFC/RFT 08/14] radio-mr800: fix potential use after free References: <4AAC657A.4070307@gmail.com> In-Reply-To: <4AAC657A.4070307@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Version 2 From c2c100652ed74d91ade7fdfb2a22d607ff43acf2 Mon Sep 17 00:00:00 2001 From: David Ellingsworth Date: Mon, 21 Sep 2009 22:17:05 -0400 Subject: [PATCH 08/14] mr800: fix potential use after free Signed-off-by: David Ellingsworth --- drivers/media/radio/radio-mr800.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) /* vidioc_querycap - query device capabilities */ From c2c100652ed74d91ade7fdfb2a22d607ff43acf2 Mon Sep 17 00:00:00 2001 From: David Ellingsworth Date: Mon, 21 Sep 2009 22:17:05 -0400 Subject: [PATCH 08/14] mr800: fix potential use after free Signed-off-by: David Ellingsworth --- drivers/media/radio/radio-mr800.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c index 9fd2342..c8fbdde 100644 --- a/drivers/media/radio/radio-mr800.c +++ b/drivers/media/radio/radio-mr800.c @@ -273,8 +273,8 @@ static void usb_amradio_disconnect(struct usb_interface *intf) mutex_unlock(&radio->lock); usb_set_intfdata(intf, NULL); - video_unregister_device(&radio->videodev); v4l2_device_disconnect(&radio->v4l2_dev); + video_unregister_device(&radio->videodev); } /* vidioc_querycap - query device capabilities */ -- 1.6.4.3