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

2018-11-20 Thread Lorenzo Pieralisi
On Tue, Nov 20, 2018 at 02:27:03PM +0100, Stefan Agner wrote: > 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 > dr

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

2018-11-20 Thread Lucas Stach
Am Dienstag, den 20.11.2018, 14:27 +0100 schrieb 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 FWIW: Reviewed-by: Lucas Stach > --- >  drivers/pci/controller/dwc/p

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

2018-11-20 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