staging: mt7621-mmc: Fix calculation typo in msdc_init_gpd_bd
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Wed, 25 Apr 2018 06:43:18 +0000 (08:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 13:36:20 +0000 (15:36 +0200)
commite396de684ebea31bde476423edcb087432f46729
tree5f3ca7e3e3a58656b300888e208f4250a974e19d
parent2175b6157acb78b6dafc8b717c67cc28891d43d5
staging: mt7621-mmc: Fix calculation typo in msdc_init_gpd_bd

When refactoring the function msdc_init_gpd_bd, an error in the
calculation of the bd.next address was introduced. The offset has to
be added to the base address, not multiplied.

Fixes: 8f2395586cf0 ("staging: mt7621-mmc: Refactor msdc_init_gpd_bd")
Reported-by: NeilBrown <neil@brown.name>
Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Tested-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c