From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com ([192.55.52.88]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WUYo6-00039Q-OW for linux-mtd@lists.infradead.org; Mon, 31 Mar 2014 09:47:07 +0000 Message-ID: <1396259200.9016.59.camel@sauron.fi.intel.com> Subject: Re: [PATCH] UBI: Fix potential NULL-pointer dereference From: Artem Bityutskiy To: Mats =?ISO-8859-1?Q?K=E4rrman?= Date: Mon, 31 Mar 2014 12:46:40 +0300 In-Reply-To: References: <1396040689-12419-1-git-send-email-alexanders83@web.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Alexander Stein , "linux-mtd@lists.infradead.org" , David Woodhouse Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2014-03-31 at 06:18 +0000, Mats Kärrman wrote: > On Friday, March 28, 2014 10:04 PM, Alexander Stein wrote: > > > > It's no use to debug print a string before checking on NULL. > > > > If the string is NULL, that could be very useful to know when debugging and > the print function should handle that gracefully, i.e. by not printing anything > for %s. %s will just result in (null), I do not see any issue with this. -- Best Regards, Artem Bityutskiy