Re: [PATCH 1/2] PCI: dwc: allow to limit registers set length

2019-02-08 Thread Lorenzo Pieralisi
On Wed, Feb 06, 2019 at 10:57:31AM +0100, Stefan Agner wrote: > Add length to the struct dw_pcie and check that the accessors > dw_pcie_(rd|wr)_conf() do not read/write beyond that point. > > Suggested-by: Trent Piepho > Signed-off-by: Stefan Agner > --- > Changes in v4: > - Move length check to

Re: [PATCH 1/2] PCI: dwc: allow to limit registers set length

2019-02-06 Thread Lorenzo Pieralisi
On Wed, Feb 06, 2019 at 10:57:31AM +0100, Stefan Agner wrote: > Add length to the struct dw_pcie and check that the accessors > dw_pcie_(rd|wr)_conf() do not read/write beyond that point. > > Suggested-by: Trent Piepho > Signed-off-by: Stefan Agner > --- > Changes in v4: > - Move length check to

[PATCH 1/2] PCI: dwc: allow to limit registers set length

2019-02-06 Thread Stefan Agner
Add length to the struct dw_pcie and check that the accessors dw_pcie_(rd|wr)_conf() do not read/write beyond that point. Suggested-by: Trent Piepho Signed-off-by: Stefan Agner --- Changes in v4: - Move length check to dw_pcie_rd_conf Changes in v5: - Rebased ontop of pci/dwc .../pci/controlle

[PATCH 1/2] PCI: dwc: allow to limit registers set length

2018-11-19 Thread Stefan Agner
Add length to the struct dw_pcie and check that the accessors dw_pcie_(rd|wr)_own_conf() do not read/write beyond that point. Signed-off-by: Stefan Agner --- drivers/pci/controller/dwc/pcie-designware-host.c | 4 drivers/pci/controller/dwc/pcie-designware.h | 1 + 2 files changed, 5 in