From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CAF522F02; Thu, 23 Nov 2023 13:15:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="siQPBVND" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBACFC433C8; Thu, 23 Nov 2023 13:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700745331; bh=WVFrUjgUeBcXNPWGgnrCb8KWifQK1zYq9aT4ZeaCau4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=siQPBVND2EtFti7EfUoVLqMkDENgDN9MLMjhEehaUN/ma9rdpbHECOkn0KybQIZJw w6Ytnpek3RFttyxbZK/eiAZw5qMxgA073Y1Rtt0TLockJT2tzj1DJZtiz5MQ6367o8 qFul222RW0+NxIAxPN8Datw00fBj0ioHVmcasJ0o= Date: Thu, 23 Nov 2023 12:57:33 +0000 From: Greg Kroah-Hartman To: Umang Jain Cc: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, Stefan Wahren , Dan Carpenter , Kieran Bingham , Laurent Pinchart , Phil Elwell , Dave Stevenson , "Ricardo B . Marliere" Subject: Re: [PATCH 1/9] staging: vc04_services: vchiq_core: Log through struct vchiq_instance Message-ID: <2023112324-boxing-amiss-6df8@gregkh> References: <20231107095156.365492-1-umang.jain@ideasonboard.com> <20231107095156.365492-2-umang.jain@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231107095156.365492-2-umang.jain@ideasonboard.com> On Tue, Nov 07, 2023 at 04:51:48AM -0500, Umang Jain wrote: > The handle_to_service() helper can return NULL, so `service` pointer > can indeed be set to NULL. So, do not log through service pointer > (which will cause NULL-deference), instead, use the vchiq_instance > function argument to get access to the struct device. > > Fixes: f67af5940d6d("staging: vc04: Convert(and rename) vchiq_log_info() to use dynamic debug") You need a space there :(