]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (7922): tuner-simple: fix tuner_warn() induced kernel oops in simple_tuner_at...
authorAndy Walls <awalls@radix.net>
Mon, 26 May 2008 04:31:17 +0000 (01:31 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 5 Jun 2008 09:35:44 +0000 (06:35 -0300)
commit3b4a9714f43a1d675a4352260a12daae197f37c3
treea095208ac75a02bf70ed33d4f4440ebaa354276e
parent5cf3f5cd1f6ee0d81b75c659c732dd8dd245a350
V4L/DVB (7922): tuner-simple: fix tuner_warn() induced kernel oops in simple_tuner_attach()

The tuner_warn() macro relies on the local variable "priv" to be a valid
pointer.  There was a case in simple_tuner_attach() where this cannot be the
case yet, so tuner_warn() would dereference a NULL "priv" pointer.  Changed
the tuner_warn() to a printk() with the originally intended output format.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/common/tuners/tuner-simple.c