Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2953271imu; Mon, 19 Nov 2018 08:33:10 -0800 (PST) X-Google-Smtp-Source: AJdET5ei8fjCMnHUO+cDZ3BCeOq4Rks1tYB2+wy1W8hb0bkppiUGH7WDl7uNfrXERgR0jhQQLW1W X-Received: by 2002:a63:4665:: with SMTP id v37mr20973851pgk.425.1542645190619; Mon, 19 Nov 2018 08:33:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645190; cv=none; d=google.com; s=arc-20160816; b=hphUTm0GK3Lbz4dh7VIH1xGqlmy20Y1udJNFfkQsUJZ39cI2P/Yc+XBfctMCafqkSQ HFQJpKhol/EJO8WSE8rkGqQBJEdI0YePMGLhU4Izrhm8VYT7kbUFc78H4CQ+MKjbFaaA X8/lBW+Ph30E03TWdH61TKjJWIoRxmTg4YAQ4tsuVeJ3+Y+7oRJGgJIMCBpHO3yDnSnG TSwqj6zuBn/hV800habypYdWClmR6tfmYg+Yg8wlYQhd2nXABLAyahlg49iGV7IFlRnK oPDPI02X3qXHsb9cG/AgbYMrD2ZgdiMeiRBQdJ85Mb8pqaT2VgiMi44lXwAhrMvytiwl ugJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=96S1jt9nTLMWjtTA5FJfzHat3kQ9TAgIOUX3wZg1RhM=; b=TgSgDRG09T+TDnUb78TVwxlLfFieVl0ql7npxPT8j7Cf+Thu1XkljAwdKM45fEteo5 eFprMHvZ5xsfMEKqiKa1KDW983KBpnjujGJ82OBazdgCNWW1LmdJH+TqNGsJjlJMosgX XqK3BrLgT3zWfhXMjasL+8ZXVDplDdsv3biuYaUIe7R4MtVVvs2e3gp9FqWf7WGe9pI2 PYpKEjDm0Vq/BVyteWGKAVPgPEPkPKzAnAP0zlHaH56gqOZOMCkiWnTzr3xM6t3pcpGG iz7pD/ObXH0pRph0TSbsM5hvx4K6M7rjJO0TMSmUbGpzPNF/8+F2jkLr4L3vzq9LOHx2 tC0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qmqXANOl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23si5169568plm.334.2018.11.19.08.32.55; Mon, 19 Nov 2018 08:33:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qmqXANOl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730509AbeKTCzt (ORCPT + 99 others); Mon, 19 Nov 2018 21:55:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:53702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729895AbeKTCzs (ORCPT ); Mon, 19 Nov 2018 21:55:48 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1FEA20831; Mon, 19 Nov 2018 16:31:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645101; bh=PGGfyXZ18cFDdEqeDf503jCN9mIbyUYxkVqp3pNU7KQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qmqXANOlM7blm2ZqfWYjS1TT1yn2yE6hyG1omPTxUBAYVxNnvPC+Lb8SvoDLm+ipR ztEpKgorInZh4WfTysRSvhrNtrVwzkJDVE+hvfD54tHPgfP/s1k19j1AMBJd5O/Ywj j2UCq04Mzx+SYkll1wCv6FYjwtldEfp3QOMjVQUY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Sasha Levin Subject: [PATCH 4.19 037/205] staging: most: video: fix registration of an empty comp core_component Date: Mon, 19 Nov 2018 17:25:44 +0100 Message-Id: <20181119162623.989063093@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Colin Ian King [ Upstream commit 1f447e51c0b9e8beeec0917ea5f51930f55e17c9 ] Currently we have structrues comp (which is empty) and comp_info being used to register and deregister the component. This mismatch in naming occurred from a previous commit that renamed aim_info to comp. Fix this to use consistent component naming in line with most/net, most/sound etc. This fixes the message two issues, one with a null empty name when loading the module: [ 1485.269515] most_core: registered new core component (null) and an Oops when removing the module: [ 1485.277971] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008 [ 1485.278648] PGD 0 P4D 0 [ 1485.279253] Oops: 0002 [#2] SMP PTI [ 1485.279847] CPU: 1 PID: 32629 Comm: modprobe Tainted: P D WC OE 4.18.0-8-generic #9 [ 1485.280442] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 0.0.0 02/06/2015 [ 1485.281040] RIP: 0010:most_deregister_component+0x3c/0x70 [most_core] .. etc Fixes: 1b10a0316e2d ("staging: most: video: remove aim designators") Signed-off-by: Colin Ian King Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/staging/most/video/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -530,7 +530,7 @@ static int comp_disconnect_channel(struc return 0; } -static struct core_component comp_info = { +static struct core_component comp = { .name = "video", .probe_channel = comp_probe_channel, .disconnect_channel = comp_disconnect_channel, @@ -565,7 +565,7 @@ static void __exit comp_exit(void) } spin_unlock_irq(&list_lock); - most_deregister_component(&comp_info); + most_deregister_component(&comp); BUG_ON(!list_empty(&video_devices)); }