From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com ([209.85.212.177]:37700 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbbJFJBo (ORCPT ); Tue, 6 Oct 2015 05:01:44 -0400 Received: by wicfx3 with SMTP id fx3so148879735wic.0 for ; Tue, 06 Oct 2015 02:01:43 -0700 (PDT) Subject: Re: [PATCH 4.1] mmc: sdhci: fix dma memory leak in sdhci_pre_req() To: gregkh@linuxfoundation.org References: <14432882559385@kroah.com> <1444121967-17621-1-git-send-email-jslaby@suse.cz> Cc: stable@vger.kernel.org, haibo.chen@freescale.com, ulf.hansson@linaro.org From: Jiri Slaby Message-ID: <56138DF6.1050108@suse.cz> Date: Tue, 6 Oct 2015 11:01:42 +0200 MIME-Version: 1.0 In-Reply-To: <1444121967-17621-1-git-send-email-jslaby@suse.cz> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On 10/06/2015, 10:59 AM, Jiri Slaby wrote: > [js] add sg_count to mmc_data as happenned in 208489032bdd8d (mmc: > mediatek: Add Mediatek MMC driver). I don't know if this is justifiable or how otherwise to solve this... The prereq 208489032bdd8d is way too big for stable, I suppose. > --- a/include/linux/mmc/core.h > +++ b/include/linux/mmc/core.h > @@ -121,6 +121,7 @@ struct mmc_data { > struct mmc_request *mrq; /* associated request */ > > unsigned int sg_len; /* size of scatter list */ > + int sg_count; /* mapped sg entries */ > struct scatterlist *sg; /* I/O scatter list */ > s32 host_cookie; /* host private data */ > }; > thanks, -- js suse labs