media: mantis: fix silly crash case
authorAlan Cox <alan@linux.intel.com>
Thu, 9 Aug 2012 15:33:52 +0000 (12:33 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2013 18:09:24 +0000 (11:09 -0700)
commite51c0ea1c933d98e3f0ea5bf0a8a3149475cf0a1
treecb1a2e2ec6fc1e98c905154e4c7fd5395acac396
parent38180ec039a7589112633b85b2cfab72a76ec9c0
media: mantis: fix silly crash case

commit e1d45ae10aea8e8a403e5d96bf5902ee670007ff upstream.

If we set mantis->fe to NULL on an error its not a good idea to then try
passing NULL to the unregister paths and oopsing really.

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=16473

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/dvb/mantis/mantis_dvb.c