Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3759102pxt; Tue, 10 Aug 2021 10:39:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwz+arXPHO2zpI6AxzNcJa02XVcRX2zt5xIFk22/IAsHX8GBEW5FZDfKYMHi33U2XmHt70E X-Received: by 2002:a17:906:8493:: with SMTP id m19mr14069751ejx.103.1628617144631; Tue, 10 Aug 2021 10:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617144; cv=none; d=google.com; s=arc-20160816; b=T3eFjZS+hQl7AN4r1OnQNgMJlZbS4QUCUKmzEnToRqivnyKBOSf2Rehxet4RoK7mSe LyHQbV1KKawTocnWicXJzfWyXvR8cHGl685Q/qssUjm8MhH0j40qeirva7DT07hBywGJ fhmJPdkfuVGwNJeBh6/kvqWQdYYQ6wIT7WgzxJzQsehAQzddMKZS9n7hGGZ/ruraCL/z Spmx+0+ZXHUp1I4OAcN7X0J5sKnSYb0FZFV+jSvaoNMgEHqSNL4hfUuv8m70phwfplz7 HWuaKMOshyPfM06lIStbDQgKPNqXF0Gg+0uZDkBS6YMjfS6ChDbTcbN8jlVJazqtUtM8 i2Ow== 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=HpDCp+tF3ueeoJ0xD5WiqVu1U2w1/jtAIGM0meDt3Im2pnG3OnYiojHISiZSQG8GYI D87usb8ovSVPLrTp7eM7W8DaYz2tZsSppXPmxuuo3J937CDBd+HrMNluFtJ9/764GwTN LJ4D3nSpFILRIE4UjsdSed3uLW3RuJm6Suhzh/9A7p7pV/VoBThuSLxwXG/Qp2iM3kO2 lAfGz49G4E+//XB7P6cUD2BYV1BjUwpG6OSDABb8Zn9I7RcVtq24GJEljvVSF/rRzVPs tHevi2jlP721nbHWA43nFcXWIhhx8Y8Kk+mdDMi3spO5YGXxWG78SYe6j3R1VH6WN4/w aRxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XI3HNTeu; 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 f12si22026574edl.0.2021.08.10.10.38.40; Tue, 10 Aug 2021 10:39:04 -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=XI3HNTeu; 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 S232924AbhHJRea (ORCPT + 99 others); Tue, 10 Aug 2021 13:34:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:37434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232747AbhHJRdr (ORCPT ); Tue, 10 Aug 2021 13:33:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AAB0760FC4; Tue, 10 Aug 2021 17:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628616805; bh=sRPFH21GUHaIfPsrdFoiMnFo8Ti4ntSLsfKaoA+wXGY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XI3HNTeu84Rtv1psOSIAr6oNFWkY85cJqnu8LPlYQrEZCF/RwRUgiYmx04SPsFNvz L1QtKWOdr1jtzeeevB6z0Yw3AsQ2XSom/0pBnI+UEVF2rPY50deSSinquUBhAYmoHF gGetNqWTCgSVSPHU6BHDqRG5fmVTi05GFUfTwHAQ= 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.19 43/54] pcmcia: i82092: fix a null pointer dereference bug Date: Tue, 10 Aug 2021 19:30:37 +0200 Message-Id: <20210810172945.607419062@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172944.179901509@linuxfoundation.org> References: <20210810172944.179901509@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