Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp979007ybp; Fri, 4 Oct 2019 07:52:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqypJSNNEwRaXCYWV11Ex6BvlqFyvGL4UfrV8oIb3UxONS1w3GPBIkMApV3xmcBUqQETiLCx X-Received: by 2002:a50:9208:: with SMTP id i8mr15581423eda.3.1570200764395; Fri, 04 Oct 2019 07:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570200764; cv=none; d=google.com; s=arc-20160816; b=w/TWV8x0zs1BLTt09bzG4YOz+TNfrRAIjJWhBjXPeTuSYp5BgzOpy5mVp+zDy7R0+t 4LbkOOLh0PWfGsLAuwACD2epufdLhdpopJ+fsa3alGZvJl+/jcv3Fe8HjHwaQ/tJQtve 4dF3R2SzJyqPnJ6nU+vuZYTKJOy+s/i0QK4rNEDK8datWDblmOeRqpTDTcnacYV7df6H WVAlbg5bW4F0bqFKyLBs6mTKrNPMGoXjDTkEzgQe6D5dUXu1afrA44z5Hl1eI7i6v1f4 Y41qz66rCoLZMHi8yxI2ZZFCM4Ra9ak0f88USQp4JZ/1axd+T4wJFvacLeNbMjNoALtz Kong== 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; bh=AICnQvY7QcNF7f+/M4M7hIgheGhg17w1bpamNJvqPmY=; b=Psm7PWPGEvwEtQASg1Fa4Y9JqI2ahbsXLBGAg2KrhPEyeGB1pXXLT+lhlHs/h76mfz p1spe/iJiHPz4ensu2hvXGfVs2hqM551CMZvcqu35PTGZ6Q0gJsLqcgMVXUjeT/ejWlp Gkq947vt7EoHqScZ0ZgWtyewwm1pmXu0cioiYdBtVgmf8xkMAaad4h8QWb/hWhzJKrAj TKCbPilmKf+BiiYXB7N1JHK5ASKet4uXsw0veR5Mi4hliOwnIOKWGLZ5YpC3OVqft179 RnaJ5y3lo8UzSXD4jnYbBbWA2qDWdbzEHN3t1+izxtwIyf3bwqi0eMEZrY+52MsO8Xpw C9wg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s42si3604774edm.292.2019.10.04.07.52.20; Fri, 04 Oct 2019 07:52:44 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389483AbfJDOtX (ORCPT + 99 others); Fri, 4 Oct 2019 10:49:23 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:33515 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388870AbfJDOtX (ORCPT ); Fri, 4 Oct 2019 10:49:23 -0400 Received: by mail-lj1-f193.google.com with SMTP id a22so6839371ljd.0; Fri, 04 Oct 2019 07:49:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=AICnQvY7QcNF7f+/M4M7hIgheGhg17w1bpamNJvqPmY=; b=tkFCdZAg4Bda89sCDZdt5sY+A7SR+mRB2xixkQwgQYXtIOqtianMUj9xnGc9CSwxk0 j7CkLl4Nx4qmVBoQYiSlS1R9j6fceFFBPBEkrgmNSQZoLyUVWQkrKfINIuKZ8A+yHK5s xik8zoiLQR3SQO0wIP0dlqRhivoMRG6coI6yBgm7dF1jsBZ3yyEbyd2wiweMKu9vgHyb qIUKOi/w3czVQXQbAiDCJQZTYqPdr0P3t1bGm880P9ekuu5jNBMBeYtk6rrWhK743e/n rGJ9gFaH3k8H3TABiXKj9GjQ84QoFP5oVBtTyV7bSamN8UlNPBq9svgoQUo1ClxPYoIA 98xA== X-Gm-Message-State: APjAAAVDw8qc+Bn5SAPvNGxiMSW/966+UslxN73ZcKLalRi7sKhSLXzH W76PAi6JU9d+UJEXBz2bb+o= X-Received: by 2002:a2e:9585:: with SMTP id w5mr4088615ljh.220.1570200560185; Fri, 04 Oct 2019 07:49:20 -0700 (PDT) Received: from xi.terra (c-51f1e055.07-184-6d6c6d4.bbcust.telenor.se. [85.224.241.81]) by smtp.gmail.com with ESMTPSA id y26sm1584105ljj.90.2019.10.04.07.49.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Oct 2019 07:49:19 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.92.2) (envelope-from ) id 1iGOte-0005Vp-Uy; Fri, 04 Oct 2019 16:49:31 +0200 Date: Fri, 4 Oct 2019 16:49:30 +0200 From: Johan Hovold To: Kalle Valo Cc: Denis Efremov , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Amitkumar Karwar , Siva Rebbagondla Subject: Re: [PATCH] rsi: fix potential null dereference in rsi_probe() Message-ID: <20191004144930.GC13531@localhost> References: <20191002171811.23993-1-efremov@linux.com> <20191004134736.2D517619F4@smtp.codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191004134736.2D517619F4@smtp.codeaurora.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 04, 2019 at 01:47:36PM +0000, Kalle Valo wrote: > Denis Efremov wrote: > > > The id pointer can be NULL in rsi_probe(). While the existing code in rsi_probe() may lead you to believe that, this statement is false. > > It is checked everywhere except > > for the else branch in the idProduct condition. The patch adds NULL check > > before the id dereference in the rsi_dbg() call. > > > > Fixes: 54fdb318c111 ("rsi: add new device model for 9116") > > Cc: Amitkumar Karwar > > Cc: Siva Rebbagondla > > Cc: Kalle Valo > > Signed-off-by: Denis Efremov > > Patch applied to wireless-drivers-next.git, thanks. > > f170d44bc4ec rsi: fix potential null dereference in rsi_probe() I just sent a revert to prevent the confusion from spreading (e.g. to stable autosel and contributers looking for things to work on). Hope you don't mind, Kalle. Johan