Re: [U-Boot] [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe

2019-08-09 Thread Peng Fan
> Subject: [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe > > Since commit 3d296365e4e8 ("mmc: sdhci: Add support for > sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc field. > Move the mmc field initialization before sdhci_setup_cfg() call to avoid crash >

Re: [U-Boot] [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe

2019-08-02 Thread Michal Simek
On 02. 08. 19 11:23, Peng Fan wrote: > >> Subject: Re: [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on >> probe >> >> On 01. 08. 19 17:00, Matwey V. Kornilov wrote: >>> Since commit 3d296365e4e8 ("mmc: sdhci: Add support for >>> sdhci-caps-mask") sdhci_setup_cfg() expects a valid

Re: [U-Boot] [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe

2019-08-02 Thread Peng Fan
> Subject: Re: [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe > > On 01. 08. 19 17:00, Matwey V. Kornilov wrote: > > Since commit 3d296365e4e8 ("mmc: sdhci: Add support for > > sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc > > field. Move the mmc field

Re: [U-Boot] [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe

2019-08-01 Thread Michal Simek
On 01. 08. 19 17:00, Matwey V. Kornilov wrote: > Since commit 3d296365e4e8 ("mmc: sdhci: Add support for > sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc > field. Move the mmc field initialization before sdhci_setup_cfg() > call to avoid crash on mmc pointer dereference. > >

Re: [U-Boot] [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe

2019-08-01 Thread Peng Fan
> Subject: [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe > > Since commit 3d296365e4e8 ("mmc: sdhci: Add support for > sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc field. > Move the mmc field initialization before sdhci_setup_cfg() call to avoid crash >

[U-Boot] [PATCH] mmc: zynq_sdhci: fix uninitialized pointer deref on probe

2019-08-01 Thread Matwey V. Kornilov
Since commit 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc field. Move the mmc field initialization before sdhci_setup_cfg() call to avoid crash on mmc pointer dereference. [this patch is based on commit 41a9fab8dac8 ("mmc: mv_sdhci: