diff options
| author | Baruch Siach <[email protected]> | 2019-07-22 18:55:35 +0300 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2019-07-31 15:31:36 +0800 |
| commit | 41a9fab8dac841afb70a059668abaf14d47cdf59 (patch) | |
| tree | acb37f7b8d29f1702f954541b54756b17cdbda4c /include/linux/unaligned/be_byteshift.h | |
| parent | 09da18deab8b56524934c9d1050edaaf53e2e8ae (diff) | |
mmc: mv_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 on mmc pointer dereference.
Fixes: 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-mask")
Cc: Faiz Abbas <[email protected]>
Signed-off-by: Baruch Siach <[email protected]>
Diffstat (limited to 'include/linux/unaligned/be_byteshift.h')
0 files changed, 0 insertions, 0 deletions
