Message ID | 20220201180822.737435970@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 B75C8C433FE for <stable@archiver.kernel.org>; Tue, 1 Feb 2022 18:19:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232285AbiBASTj (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 1 Feb 2022 13:19:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241964AbiBASRh (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 1 Feb 2022 13:17:37 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF837C06174A; Tue, 1 Feb 2022 10:17:28 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 3BA7CCE1A60; Tue, 1 Feb 2022 18:17:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2DB6C340ED; Tue, 1 Feb 2022 18:17:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643739445; bh=h5FnX/greXaqByjqL1vJ30EHa9UbUEOz0dK0iGmRLKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hFzKsoFwL0z5mD71q955ZLIZXdAtvcwXsQSg0pwjaFWJG4AscHorK8AjYMsPZ6d5o 70120OkUOU2+tJfQ6/Q4VAmIVjn/i2cVfsso4JhPXRNdVrMw3/jNruumnxDDVIdfD6 8T9tfucO58EpivYxOEY5bCWGj+3sHBZlFoWzn2kk= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Xianting Tian <xianting.tian@linux.alibaba.com>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.4 18/25] drm/msm: Fix wrong size calculation Date: Tue, 1 Feb 2022 19:16:42 +0100 Message-Id: <20220201180822.737435970@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220201180822.148370751@linuxfoundation.org> References: <20220201180822.148370751@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
|
--- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -286,7 +286,7 @@ static int msm_init_vram(struct drm_devi ret = of_address_to_resource(node, 0, &r); if (ret) return ret; - size = r.end - r.start; + size = r.end - r.start + 1; DRM_INFO("using VRAM carveout: %lx@%pa\n", size, &r.start); } else #endif