Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4216666ybl; Mon, 13 Jan 2020 09:47:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyfZXhGQ4iFCZ3hD5FCMDn4Ue7mX601TjAlDFOwrBHhgbbAS8b9Emv1ok2uSGxKK/ZU+cyx X-Received: by 2002:aca:d6c8:: with SMTP id n191mr14413952oig.103.1578937637441; Mon, 13 Jan 2020 09:47:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578937637; cv=none; d=google.com; s=arc-20160816; b=QJLE878a5YFRXkOlzSgVnpxLJXiBNqiEF/vdJOQOMV8LeVsBGGSCJAJSEbIbGYk8cA nfN6QwGBNwoPmlKDTZR7cEfvdaSknmM2aJax18aBbPY1OUUwdHmEHU7gipwTmp1/nG07 XHgPDXd0huS+nrIRaxHl8y/EVW1kIi+xumbJnXGL4uy5dAuvwwhVfzTq8Yl/vIfcylZy T3AeXgaCfcGIcAJylzyqL32O8rQgNF82n51XTSCm3GBceTofe4zHRHcTspuOmtF99NKb eSQ9QuuaVVu8EQg9A7m+qeR8u6RuOLHsc55h7FnB28t9D1+s+YwoMkvciBk+O5EzC7rK ao+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NnJ2zsxM+vdIyoLm/zz50BLfipyBdp3LTS5OEucSVM4=; b=ljmEXT4O0CTvPl5Iyl6qnitPaZGSvH0syQNRV/2zBvy1pblwyCspSYKm8IHoJbPXCv nnoylFn0hFgCBYdahBMY76jnVEkiSEga8A2qGWawKtRo0Jzxa6nUIq/RCyKVJPKF9Xhg Zxm9kOUuQsfaTg0KB6HXI187JY/PT3tqvz6xzgOpcN06RKYny8xlMeSr9M9F0NnijIVG RYhFyFWnNJjtERGjic0u92uCGc2xyIzlMk0iImRH7URWlnxi3jxFxWA1tpAchh1TJnD2 i0Yp9o0oHXaQXjhI+DpSz8P3RL/R3k+hdoIEdeQ2/k0wDdFiFgsWpGTrSMXc2woYwK6m VU5A== ARC-Authentication-Results: i=1; mx.google.com; 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 a9si6277208oib.59.2020.01.13.09.47.04; Mon, 13 Jan 2020 09:47:17 -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; 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 S1728755AbgAMRqH (ORCPT + 99 others); Mon, 13 Jan 2020 12:46:07 -0500 Received: from muru.com ([72.249.23.125]:50738 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbgAMRqH (ORCPT ); Mon, 13 Jan 2020 12:46:07 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 245D98047; Mon, 13 Jan 2020 17:46:48 +0000 (UTC) Date: Mon, 13 Jan 2020 09:46:03 -0800 From: Tony Lindgren To: Colin Ian King Cc: Vinod Koul , Dan Williams , Peter Ujfalusi , dmaengine@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next][V2] dmaengine: ti: omap-dma: don't allow a null od->plat pointer to be dereferenced Message-ID: <20200113174603.GK5885@atomide.com> References: <20200109131953.157154-1-colin.king@canonical.com> <20200110074605.GD2818@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Colin Ian King [200110 09:22]: > On 10/01/2020 07:46, Vinod Koul wrote: > > On 09-01-20, 13:19, Colin King wrote: > >> From: Colin Ian King > >> > >> Currently when the call to dev_get_platdata returns null the driver issues > >> a warning and then later dereferences the null pointer. Avoid this issue > >> by returning -ENODEV errror rather when the platform data is null and > > > > s/errror/error :) never thought would correct Colin on spelling :) > > Doh, I need to add that to the checkpatch dictionary ;-) > > If this can be fixed up before it's applied then this would be > appreciated rather than me sending a V3. I've fixed i up and pushed out into omap-for-v5.6/sdma. Thanks, Tony