Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3067020imu; Sun, 9 Dec 2018 16:31:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/Us8ah7NQ8OOjjCcU6fNuXnRdsSaoYQyGtDuxYn6YF42t36QKoTWJSBn8a7Ynq46XazFGwL X-Received: by 2002:a17:902:2a29:: with SMTP id i38mr10366675plb.253.1544401867269; Sun, 09 Dec 2018 16:31:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544401867; cv=none; d=google.com; s=arc-20160816; b=NDzF155vVOQyFzfa5we87TgMHG8KxhzZMTzEh4ZpcN1Vjr03NjkshJoJpxJIcElnS7 RUjBehv7lMC4rtiLPbyb08OSbAUYhsAyZgxV9gYtiyzwbBo52NyTVDbXWZPjf9ReqynW Bz+fnjkW9DMzyBREdKge+QVHoHKcKokIYFyk5fgYU86OIfUcvx9ED9lwUsW5qpW0JPDO M7is/avQyh72QfRFa7KFV+InAx+fTME9ADGUjr2/eGAg61CyPvsfjk/Ar3rHABqQqVuB q5tcp0a7svRUeJDa0a+j3H2PlPpdbq6VEKFlYC5nkozhTVV52BoO36aShI6MfIBbtpJb z8NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=DL7vWfoU1+BmGaug9V8ELl/sAX/eCA1Zcsn9gWPL5h4=; b=WkOzvhaofemt8hR/efdXmj/CxvYqhGPOzTrTNNS0jVW2Gt/f1XBes/zQDEpdiv68Td uG2yyN/ckoMKmDfvCp2JI9jZxRpQaV3jWcN66CwjV3oyRl6mPmbSxU0S4ophNHjCCznx qm8zNmAhbkbhyF9EwzlwduxpelRMC+Xx3oOBtwffamDf3RSN1U3A3r/ahF/5y3bcYv/Z TioV5hWYyyUPE82TFWMSXND0exODxdEOjSRD4rAlHnAD/nt4g3RmZoUjZEhgcy5yaKNY Q34mu/5rG+yBBHpm4Qgd8Qymakfp/ARzY86537j6cQ5M3SNAAkqTpczBKfKGouyaeFLc VGXw== 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 f82si9548624pfa.221.2018.12.09.16.30.52; Sun, 09 Dec 2018 16:31:07 -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 S1728410AbeLIWNk (ORCPT + 99 others); Sun, 9 Dec 2018 17:13:40 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:37932 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbeLIWNg (ORCPT ); Sun, 9 Dec 2018 17:13:36 -0500 Received: from pub.yeoldevic.com ([81.174.156.145] helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gW73I-0002ie-E7; Sun, 09 Dec 2018 21:55:52 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gW72b-0003K7-DE; Sun, 09 Dec 2018 21:55:09 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Mikulas Patocka" , "Dave Airlie" Date: Sun, 09 Dec 2018 21:50:33 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 088/328] udl-kms: fix crash due to uninitialized memory In-Reply-To: X-SA-Exim-Connect-IP: 81.174.156.145 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.62-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Mikulas Patocka commit 09a00abe3a9941c2715ca83eb88172cd2f54d8fd upstream. We must use kzalloc when allocating the fb_deferred_io structure. Otherwise, the field first_io is undefined and it causes a crash. Signed-off-by: Mikulas Patocka Signed-off-by: Dave Airlie Signed-off-by: Ben Hutchings --- drivers/gpu/drm/udl/udl_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/udl/udl_fb.c +++ b/drivers/gpu/drm/udl/udl_fb.c @@ -344,7 +344,7 @@ static int udl_fb_open(struct fb_info *i struct fb_deferred_io *fbdefio; - fbdefio = kmalloc(sizeof(struct fb_deferred_io), GFP_KERNEL); + fbdefio = kzalloc(sizeof(struct fb_deferred_io), GFP_KERNEL); if (fbdefio) { fbdefio->delay = DL_DEFIO_WRITE_DELAY;