Re: [PATCH] mmc: core: properly init drv_type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 04, 2017 at 09:31:13AM +0100, Geert Uytterhoeven wrote:
> Hi Wolfram,
> 
> On Thu, Nov 30, 2017 at 3:49 PM, Wolfram Sang
> <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> wrote:
> > When the latest version of parsing the new eMMC bindings was moved from
> > core.c to mmc.c, it was overlooked that drv_type could be used
> > uninitialized. Fix it!
> >
> > Fixes: 6186d06c519e21 ("mmc: parse new binding for eMMC fixed driver type")
> > Reported-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> > Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> > ---
> >  drivers/mmc/core/mmc.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
> > index a552f61060d212..0d1c6b025ca596 100644
> > --- a/drivers/mmc/core/mmc.c
> > +++ b/drivers/mmc/core/mmc.c
> > @@ -1290,7 +1290,7 @@ int mmc_hs400_to_hs200(struct mmc_card *card)
> >
> >  static void mmc_select_driver_type(struct mmc_card *card)
> >  {
> > -       int card_drv_type, drive_strength, drv_type;
> > +       int card_drv_type, drive_strength, drv_type = 0;
> >         int fixed_drv_type = card->host->fixed_drv_type;
> >
> >         card_drv_type = card->ext_csd.raw_driver_strength |
> 
> Could this be the cause of the issues Simon was seeing, cfr. 'Possible
> regression due to "arm64: renesas: salvator: set driver type for eMMC"'?

Yes, there is a chance. It still worked for me, though.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux