]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[media] mantis: fix silly crash case
authorAlan Cox <alan@linux.intel.com>
Thu, 9 Aug 2012 15:33:52 +0000 (12:33 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 May 2013 13:35:15 +0000 (14:35 +0100)
commit0a686e3291bf91d6fa52046505002b2c6cb556a2
tree29df79e6121db172b1c302f684448f23066facbe
parent7abe9d39f7a6c39cb282dac10c9345e242b4c6fb
[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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/dvb/mantis/mantis_dvb.c