Received: by 10.223.185.116 with SMTP id b49csp486702wrg; Fri, 23 Feb 2018 01:53:17 -0800 (PST) X-Google-Smtp-Source: AH8x226bMe4awp6oQl+YWajres5OKMxoZZ13uHaRHDmxjgwvCZeuMeZCUkIvrOGKO34+3gd7iwee X-Received: by 10.99.116.25 with SMTP id p25mr998050pgc.109.1519379596891; Fri, 23 Feb 2018 01:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519379596; cv=none; d=google.com; s=arc-20160816; b=JVD5b0tJubtFbF0j5NWLkoYzx1KQH8e00wO/4NAnJ8fb56QiqucDFwbip4AOSJC0Ml +Cu+YoYnNJcjKyI+FUcGuLeDwYzNAl50LmS9E2HpcQeg+M9JG5yOsTjTm5oAoxA6vUZr SqubXqgkPpUb6MgPYbXHkKx3rdXJY8v5colTP5gQPVomFk6RTWNxSaWu3piiR+SrQDMA wUtXA1b/Qc2ZiTGIIOKxB8CMj77AdME/N8J9chykt6Sf5WjL0c3p4/XjV0LigPidtGca scPfcF87xNvRsWZy1aeeMawpUTZJ2gTQ7dLH5bb9oVR83vxxnbOn9o1rKq4WDWNXEQ/6 nLiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=7ftYU9NTA3875D+19LwBPo1ozEKD4P4h1On7uNmh9Lg=; b=086CSLV4xEPEuWPClQXaKy3/6hZdDKlyKGkOAnuIMIDKj0nZ6C66m49+YC8MeZy+g/ 13bGJrIi/YXFrkcccVW/gzmir3ELTI27c5Wmg+VRY+RwV7NgU4mzcQQZy0Drxf8f0Ll3 wskqzW7AtVo4GXe7vhnXFW0jkdfVl7HuyhiHnPgeHudh5HUNPnMdS58QYoPSRR0uzFrV 5fkbOJdYxWV0Xf5yiPCf2u7+GbHM6uiVEVwh16gspyxTYFvamB7pdP36U7h1FmhtaM4t DvsybH9YeCnwUiHsQX3w0gOc7Bbrmainjb1UzSGXUjA0QscEVEkX8lKAhvWGqh49qzcl Pkiw== 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 s17si1567514pfi.32.2018.02.23.01.53.02; Fri, 23 Feb 2018 01:53:16 -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 S1751765AbeBWJw2 (ORCPT + 99 others); Fri, 23 Feb 2018 04:52:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:50564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbeBWJw0 (ORCPT ); Fri, 23 Feb 2018 04:52:26 -0500 Received: from saruman (jahogan.plus.com [212.159.75.221]) (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 495C3217A3; Fri, 23 Feb 2018 09:52:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 495C3217A3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Fri, 23 Feb 2018 09:52:21 +0000 From: James Hogan To: Colin King Cc: Ralf Baechle , linux-mips@linux-mips.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: ath25: check for kzalloc allocation failure Message-ID: <20180223095220.GK6245@saruman> References: <20180222175012.11076-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mPOSj6iWmtyhwOMz" Content-Disposition: inline In-Reply-To: <20180222175012.11076-1-colin.king@canonical.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mPOSj6iWmtyhwOMz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2018 at 05:50:12PM +0000, Colin King wrote: > From: Colin Ian King >=20 > Currently there is no null check on a failed allocation of board_data, > and hence a null pointer dereference will occurr. Fix this by checking > for the out of memory null pointer. >=20 > Fixes: a7473717483e ("MIPS: ath25: add board configuration detection") > Signed-off-by: Colin Ian King Applied to my fixes branch with 3.19+ stable tag. Thanks James --mPOSj6iWmtyhwOMz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlqP5FQACgkQbAtpk944 dno/kg/+OdLgQEiQPu+8he69/Y2ZIDSfdIn9mblJXoYxnbpS5YaSMK/fPvSizNQ6 8x+n0VkGC5FgNLd7dTfQOFiP18Z5jv0f0nPzrBKMhK7PF7Zm1+KS8nLspvWjxdbE NzDs8xnNF5tu9LCT/WTh/PeSJUCqMG/nbCbZ9XSZ0wM4F9A989kG4AgHQkCiHdsA U0Sw7vOouFUboMWYzv+jWBjOGYVU7LvtyGcBkhsbKfhuKJmhqKV4NCasEmrGUMFB rjMYvUa5orbGkGX93WbuuFFybDV2Z8HOW+QidvPi7GezbyhI4nq+iM0/wEPe2FZe KS8zwnS6Pdqm8H/YtA37onKOl39mlAyOh2tFbjBZ6PusAKnPh5SPBpLCDzXwKoGD Nb0kfhT4zbEEbu8MvIOFMnTkfD7sxzE9+h+ZK5LfQiK+csOOIVYJ3F+UMm8I7pJD jRS9BnqO4MGea9Fkn5VIgXZ1hyRQ+DSqt/42BsrtgGSuiqRoB//+4T1y9aPLOpHj 1Q3yXaqYoG5GznU38ioHGPzQAlA9Ho5zK0xetkUXjwIx8y3a4Fhy7TTEkUzUkz1v j8fX41yNlkSB6NdVlYv8yMS98qLVYGGbFOqLvT+tUcbpZoa6Dtxl/UD6CpwtpTD3 Gqj3p+bsxcTSbJS0gXHSl3lbdRtOWbsjXwM0TUmKUzqAaJOoY6k= =R+XB -----END PGP SIGNATURE----- --mPOSj6iWmtyhwOMz--