Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp958556pxb; Fri, 13 Aug 2021 10:03:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzCdHMWO4MBQIDW1IDEFqFIyN3iLPI7/3SoumSV1/JV/PyRzpa0te592XYNqfI3SUucaO0 X-Received: by 2002:a05:6e02:1104:: with SMTP id u4mr2406804ilk.247.1628874226109; Fri, 13 Aug 2021 10:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628874226; cv=none; d=google.com; s=arc-20160816; b=hSRr1rv3/65ZJIrK3EvwGw5m2e44oIeSZ1/Yw7Z5zXJhMakREo+GRFoMszCdG6IjHe uRiorg8DXnunQZtZCgewKFfh7QN0hfwQPAY17ArG4TKyvSPQ+3FJmVutOYpXJW3760wW Npzy/nVnZAYPVfb7Idi0cOUUJig9wdbNe6Gogfvozp59+UD51Pqd+/+UCSes/4VQaW2X vZQWV7VMxInIrV3jaY7MhfbrqZQp8ILNUsMla/rhCOZ5pGx+HL+Hk2DT/I/0dMIwvflV mWO4iWPFiwwAeNS5jXd3EpVtZLmK3JmxzSVZvlQM3sZaVUCSKjIZ4XbhDL2cHx1ru2zK zwCw== 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=rDmgfJ/QSJEI81sYndPMTNrMhj5ESOjTNCRLnfNbw6w5KLNIARTIXYjMRjQqPF27vA o22AQckONzdOFlUerdvJfhsUwrSVe5LPxwrIvXaw7/zTj7I2/Yrw9HjQ4WRTw62wkNh2 9Z4B1nxhsJJuq6a7iD/ukwLJGFryip02YX5PzxXMoSUFKQEOarY0EFa3RoBAHUFQ2izJ 5WOHEG55+H7o16M/kbTqZANxidScJySWqla9rz/HL440n0nwB+qB+fO72RUZ+vuLnC0Z TZdkT4r4JwF1/yGMsfBt83KHZBD4s6DQpxieD56W/4p1fhpWIyyGTXYa/x85rfQfBSmE lOjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uwjCsGZh; 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 k8si2112076jaa.51.2021.08.13.10.03.34; Fri, 13 Aug 2021 10:03:46 -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=uwjCsGZh; 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 S241167AbhHMPIv (ORCPT + 99 others); Fri, 13 Aug 2021 11:08:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:51124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241173AbhHMPIq (ORCPT ); Fri, 13 Aug 2021 11:08:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 54450610CC; Fri, 13 Aug 2021 15:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628867298; bh=sRPFH21GUHaIfPsrdFoiMnFo8Ti4ntSLsfKaoA+wXGY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uwjCsGZhP0235OK1JuPCSN0x/o04kEynZRbbCpy9IHQ8kmPkkAqfmwVLQ/pEp5n+t sTKVLgnTOuNHMvRdVqpyE8lvg3flgbS/lG7pYcZOxTr1OzPOUR+H4DQTOMZSfeIgKv bQL82QILbVAV4rQtqlN0B85Isd9FlE3JFkcJcD34= 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.4 17/25] pcmcia: i82092: fix a null pointer dereference bug Date: Fri, 13 Aug 2021 17:06:41 +0200 Message-Id: <20210813150521.280456301@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210813150520.718161915@linuxfoundation.org> References: <20210813150520.718161915@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