From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from bamako.nerim.net ([62.4.17.28]:50353 "EHLO bamako.nerim.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751806Ab0E2HG4 (ORCPT ); Sat, 29 May 2010 03:06:56 -0400 Date: Sat, 29 May 2010 09:06:52 +0200 From: Jean Delvare To: Mauro Carvalho Chehab Cc: Dan Carpenter , "Beholder Intl. Ltd. Dmitry Belimov" , hermann pitton , Douglas Schilling Landgraf , linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [patch] video/saa7134: potential null dereferences in debug code Message-ID: <20100529090652.2e8f5e43@hyperion.delvare> In-Reply-To: <20100529012954.25490c3a@pedra> References: <20100522201535.GI22515@bicker> <20100522225921.585b2d72@hyperion.delvare> <20100529012954.25490c3a@pedra> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: On Sat, 29 May 2010 01:29:54 -0300, Mauro Carvalho Chehab wrote: > Em Sat, 22 May 2010 22:59:21 +0200 > Jean Delvare escreveu: > > I would have used "(null)" instead of "" for consistency with > > lib/vsprintf.c:string(). > > > > But more importantly, I suspect that a better fix would be to not call > > these macros when dev or ir, respectively, is NULL. The faulty dprintk > > calls in get_key_msi_tvanywhere_plus() and get_key_flydvb_trio() could > > be replaced with i2cdprintk (which is misnamed IMHO, BTW.) > > Agreed. > > Dan, could you please rework your patch according with Jean's feedback? He did already. -- Jean Delvare