Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp958734pxb; Fri, 13 Aug 2021 10:03:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7b/dpgfxALB0dK4SXRgLr7TgsY3YWts9j6S7WEvIfBx6cKbUf+K/kOjlMMDZaiORKvxc7 X-Received: by 2002:a92:6909:: with SMTP id e9mr2460493ilc.231.1628874238924; Fri, 13 Aug 2021 10:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628874238; cv=none; d=google.com; s=arc-20160816; b=TRZiiVyPIm+b8X2nW/HDW0713tbAFoIdSu2qwMeP1kR7XWy1G33sgK0xEbL5GSGuSy eV1kT9jFAsNd/hR4dSdrawwDRUDpXYrTLjePtQsItKig+v8Cx2aw0J0Kt0iuOhnp5kS7 Z4svjEkG0RjYSmd53WYLABhgrExdNaduEA2OVNwSAuxJry6wWgXy99w5+HspXDBAwYXz vF21C7u8ud4tPy9HoXJcrQtuUbw4T4CVdTPRDl5+0AKNUpQNEtI9H+3i4rPC8M/N72/u qeaJ8yFBoE8lNauHxwuqVK8OZzfK1vuPEr9bFrVMXu7TQMimmkXNrvaB8uFh8Xywzro8 jZZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Bc5eSyeOMlmPsfbIM8smencYdJToTWASP5fh/1ZquW4=; b=CvOzCe5x1ssmFiXAdH/Dk2awmsZLT4ksI69tYLxzf5Ds8Db11M6FcZkkgesJyyT3bu Er7r9TRE3bJ10XFg1tBaqnu7xBCfBH+m9ZcVtzw36q6IfmypoBL3pbtRlhUOq4B6VIzy yto6BxZFwYzToVTlkv1HSlc+rnoP4h/J1bkjuOx/qMyQis831Iaxaox7v0q1wzbSxSUK +xblar+4Am+lYdy1rIK/NIFOymEMtFD/Qm8+maNhihGN3PA4v7CeY0bHR5buYK+mc6+Z pubHNXRSt4iO7ZKBTZkMAjFPY2Ik6dFPB3XqxZ+ivbanYkt7LHZJik3R5ZNQrOgy2jZp zGrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cm+MkjXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si2291379ilf.133.2021.08.13.10.03.47; Fri, 13 Aug 2021 10:03:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cm+MkjXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241220AbhHMPKb (ORCPT + 99 others); Fri, 13 Aug 2021 11:10:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:52526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241249AbhHMPKH (ORCPT ); Fri, 13 Aug 2021 11:10:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 020C36109E; Fri, 13 Aug 2021 15:09:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628867380; bh=sRPFH21GUHaIfPsrdFoiMnFo8Ti4ntSLsfKaoA+wXGY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cm+MkjXGPGWMVqjq+2KYt4l4Ai0FhWfS6+Q35eKnzZfUUu4eE90wWEGs2VRy/EgcN ic+cKrDtL1ZiEa5XLSBfYMcnpBwa2/2jvoShzjA3aekG49KI4XvzA8zjmlR4MSLoWi mfy1PriZQ3YvOHFc4eqyC5KeNFNm71K+g+jJKtZI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zheyu Ma , Dominik Brodowski Subject: [PATCH 4.9 21/30] pcmcia: i82092: fix a null pointer dereference bug Date: Fri, 13 Aug 2021 17:06:49 +0200 Message-Id: <20210813150523.121577368@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210813150522.445553924@linuxfoundation.org> References: <20210813150522.445553924@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zheyu Ma commit e39cdacf2f664b09029e7c1eb354c91a20c367af upstream. During the driver loading process, the 'dev' field was not assigned, but the 'dev' field was referenced in the subsequent 'i82092aa_set_mem_map' function. Signed-off-by: Zheyu Ma CC: [linux@dominikbrodowski.net: shorten commit message, add Cc to stable] Signed-off-by: Dominik Brodowski Signed-off-by: Greg Kroah-Hartman --- drivers/pcmcia/i82092.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/pcmcia/i82092.c +++ b/drivers/pcmcia/i82092.c @@ -105,6 +105,7 @@ static int i82092aa_pci_probe(struct pci for (i = 0;i