media: tm6000: add error handling for dvb_register_adapter
authorZhouyang Jia <jiazhouyang09@gmail.com>
Mon, 11 Jun 2018 04:39:20 +0000 (00:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:51 +0000 (17:00 -0700)
commit0ebe95dee2f23419f4d5a379590d1f889bf22467
treef3a83d3b1b32272e9b391f5139efe15cf1403d91
parent0091a4ede7834c92751cb56fe4a9bc3b62d347ed
media: tm6000: add error handling for dvb_register_adapter

[ Upstream commit e95d7c6eb94c634852eaa5ff4caf3db05b5d2e86 ]

When dvb_register_adapter fails, the lack of error-handling code may
cause unexpected results.

This patch adds error-handling code after calling dvb_register_adapter.

Signed-off-by: Zhouyang Jia <jiazhouyang09@gmail.com>
[hans.verkuil@cisco.com: use pr_err and fix typo: adater -> adapter]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/tm6000/tm6000-dvb.c