From patchwork Sun Apr 11 21:15:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guy Martin X-Patchwork-Id: 91929 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 o3BLQAXX002339 for ; Sun, 11 Apr 2010 21:26:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752960Ab0DKVZy (ORCPT ); Sun, 11 Apr 2010 17:25:54 -0400 Received: from fb1.tech.numericable.fr ([82.216.111.51]:44108 "EHLO fb1.tech.numericable.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752388Ab0DKVZx (ORCPT ); Sun, 11 Apr 2010 17:25:53 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 11 Apr 2010 21:26:15 +0000 (UTC) X-Greylist: delayed 617 seconds by postgrey-1.27 at vger.kernel.org; Sun, 11 Apr 2010 17:25:53 EDT Received: from smtp4.tech.numericable.fr (smtp4.nc.sdv.fr [10.0.0.60]) by fb1.tech.numericable.fr (Postfix) with ESMTP id 6959B9E60B for ; Sun, 11 Apr 2010 23:16:36 +0200 (CEST) Received: from ibiza.bxl.tuxicoman.be (cable-85.28.93.50.coditel.net [85.28.93.50]) by smtp4.tech.numericable.fr (Postfix) with ESMTP id 3003A12A80D for ; Sun, 11 Apr 2010 23:15:33 +0200 (CEST) Received: from borg.bxl.tuxicoman.be ([172.19.0.10]) by ibiza.bxl.tuxicoman.be with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1O14V7-00088o-SL for linux-media@vger.kernel.org; Sun, 11 Apr 2010 23:15:33 +0200 Date: Sun, 11 Apr 2010 23:15:29 +0200 From: Guy Martin To: linux-media@vger.kernel.org Subject: [PATCH] stv090x Fix kernel oops when plugging two cards Message-ID: <20100411231529.1538cf69@borg.bxl.tuxicoman.be> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -r 7c0b887911cf linux/drivers/media/dvb/frontends/stv090x.c --- a/linux/drivers/media/dvb/frontends/stv090x.c Mon Apr 05 22:56:43 2010 -0400 +++ b/linux/drivers/media/dvb/frontends/stv090x.c Sun Apr 11 13:46:43 2010 +0200 @@ -4664,7 +4664,7 @@ if (stv090x_i2c_gate_ctrl(state, 1) < 0) goto err; - if (state->config->tuner_sleep) { + if (fe->tuner_priv && state->config->tuner_sleep) { if (state->config->tuner_sleep(fe) < 0) goto err_gateoff; }