lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1298732029.6974.13.camel@vkoul-udesk3>
Date:	Sat, 26 Feb 2011 20:23:49 +0530
From:	"Koul, Vinod" <vinod.koul@...el.com>
To:	Tomoya MORINAGA <tomoya-linux@....okisemi.com>
Cc:	"Williams, Dan J" <dan.j.williams@...el.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"Wang, Yong Y" <yong.y.wang@...el.com>,
	"Wang, Qi" <qi.wang@...el.com>,
	"toshiharu-linux@....okisemi.com" <toshiharu-linux@....okisemi.com>,
	"Ewe, Kok Howg" <kok.howg.ewe@...el.com>,
	"Clark, Joel" <joel.clark@...el.com>
Subject: Re: [PATCH 2/2] pch_dma: set the number of array correctly

On Fri, 2011-02-18 at 22:44 +0530, Koul, Vinod wrote:
> > On Fri, 2011-02-18 at 10:01 +0530, Tomoya MORINAGA wrote:
> > set the number of array correctly.
> > 
> > Signed-off-by: Tomoya MORINAGA <tomoya-linux@....okisemi.com>
> > ---
> >  drivers/dma/pch_dma.c |    4 ++--
> >  1 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c
> > index bf2ddd6..b1dfba7 100644
> > --- a/drivers/dma/pch_dma.c
> > +++ b/drivers/dma/pch_dma.c
> > @@ -82,7 +82,7 @@ struct pch_dma_regs {
> >  	u32	dma_sts1;
> >  	u32	reserved2;
> >  	u32	reserved3;
> > -	struct pch_dma_desc_regs desc[0];
> > +	struct pch_dma_desc_regs desc[MAX_CHAN_NR];
> >  };
> >  
> >  struct pch_dma_desc {
> > @@ -124,7 +124,7 @@ struct pch_dma {
> >  	struct pci_pool		*pool;
> >  	struct pch_dma_regs	regs;
> >  	struct pch_dma_desc_regs ch_regs[MAX_CHAN_NR];
> > -	struct pch_dma_chan	channels[0];
> > +	struct pch_dma_chan	channels[MAX_CHAN_NR];
> >  };
> >  
> >  #define PCH_DMA_CTL0	0x00
> 
> Both
> Acked-by: Vinod Koul <vinod.koul@...el.com>
Applied both @git://git.infradead.org/users/vkoul/slave-dma.git

Fixed one minor style error in 2nd patch but from next time please
ensure you run checkpatch before sending

-- 
~Vinod

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ