Message ID | 20211215172027.321560285@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DABA3C433EF for <stable@archiver.kernel.org>; Wed, 15 Dec 2021 17:24:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343530AbhLORYu (ORCPT <rfc822;stable@archiver.kernel.org>); Wed, 15 Dec 2021 12:24:50 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:44760 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245408AbhLORYH (ORCPT <rfc822;stable@vger.kernel.org>); Wed, 15 Dec 2021 12:24:07 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B407F619EE; Wed, 15 Dec 2021 17:24:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9801FC36AE2; Wed, 15 Dec 2021 17:24:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1639589046; bh=xdzZiQCkQ0Zkt/lOGyRR+XYxWc80S57QkaLlSpGJmF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oNZKYqOMze4sRa0DCvgx0jN6qCWmjWmdcm51jgPwRUa/ByvGrtZ5lKkPOtbYLarrQ k1wcy+J3uXW/bRx4xWwfo8C4JkwdJQ+wHspOBwmRVf0JTaNnCiAPe0nVDi0uOXoRQy g0IQDgetf8Anzvg+a2WtbeO6ax/zBrBbq6kYbW30= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Akhil P Oommen <akhilpo@codeaurora.org>, Rob Clark <robdclark@chromium.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 5.15 19/42] drm/msm: Fix null ptr access msm_ioctl_gem_submit() Date: Wed, 15 Dec 2021 18:21:00 +0100 Message-Id: <20211215172027.321560285@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211215172026.641863587@linuxfoundation.org> References: <20211215172026.641863587@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/gpu/drm/msm/msm_gem_submit.c b/drivers/gpu/drm/msm/msm_gem_submit.c index a38f23be497d8..d9aef97eb93ad 100644 --- a/drivers/gpu/drm/msm/msm_gem_submit.c +++ b/drivers/gpu/drm/msm/msm_gem_submit.c @@ -780,6 +780,7 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data, args->nr_cmds); if (IS_ERR(submit)) { ret = PTR_ERR(submit); + submit = NULL; goto out_unlock; }