]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
dfu: mmc: check if mmc device exists in mmc_block_op()
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 15 Dec 2014 09:34:09 +0000 (10:34 +0100)
committerLukasz Majewski <l.majewski@samsung.com>
Thu, 18 Dec 2014 11:26:06 +0000 (12:26 +0100)
commit7da6fa27168c468e58814d54fe3f66109036ec2e
tree17b26df37857b10b0da0971dabdeca166cf4caf2
parent267abc626da609560aecab83e06b187954974ba6
dfu: mmc: check if mmc device exists in mmc_block_op()

The function mmc_block_op() is the last function before
the physicall data write, but the mmc device pointer is not
checked. If mmc device not exists, then data abort will occur.
To avoid this, first the mmc device pointer is checked.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
[TestHW: Exynos4412-Trats2]
drivers/dfu/dfu_mmc.c