From patchwork Fri May 7 07:34:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guy Martin X-Patchwork-Id: 97612 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o477Yi50023785 for ; Fri, 7 May 2010 07:34:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753725Ab0EGHej (ORCPT ); Fri, 7 May 2010 03:34:39 -0400 Received: from smtp3.tech.numericable.fr ([82.216.111.39]:36182 "EHLO smtp3.tech.numericable.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753032Ab0EGHej (ORCPT ); Fri, 7 May 2010 03:34:39 -0400 Received: from ibiza.bxl.tuxicoman.be (cable-85.28.107.20.coditel.net [85.28.107.20]) by smtp3.tech.numericable.fr (Postfix) with ESMTP id E0A3E3E408; Fri, 7 May 2010 09:34:37 +0200 (CEST) Received: from [172.22.0.10] (helo=zombie) by ibiza.bxl.tuxicoman.be with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1OAI4v-00051z-Kh; Fri, 07 May 2010 09:34:36 +0200 Date: Fri, 7 May 2010 09:34:40 +0200 From: Guy Martin Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: Re: [PATCH v2] stv6110x Fix kernel null pointer deref when plugging two TT s2-1600 Message-ID: <20100507093440.233cd65e@zombie> In-Reply-To: <20100507090515.2fb971a7@zombie> References: <20100411231529.1538cf69@borg.bxl.tuxicoman.be> <20100503230924.3f560423@pedra> <20100507090515.2fb971a7@zombie> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; x86_64-pc-linux-gnu) Mime-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 07 May 2010 07:34:44 +0000 (UTC) diff -r 4a8d6d981f07 linux/drivers/media/dvb/frontends/stv6110x.c --- a/linux/drivers/media/dvb/frontends/stv6110x.c Wed May 05 11:58:44 2010 -0300 +++ b/linux/drivers/media/dvb/frontends/stv6110x.c Fri May 07 08:51:18 2010 +0200 @@ -302,7 +302,10 @@ static int stv6110x_sleep(struct dvb_frontend *fe) { - return stv6110x_set_mode(fe, TUNER_SLEEP); + if (fe->tuner_priv) + return stv6110x_set_mode(fe, TUNER_SLEEP); + + return 0; } static int stv6110x_get_status(struct dvb_frontend *fe, u32 *status)