summaryrefslogtreecommitdiff
path: root/lib/linux_compat.c
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2014-12-15 10:34:09 +0100
committerLukasz Majewski <l.majewski@samsung.com>2014-12-18 12:26:06 +0100
commit7da6fa27168c468e58814d54fe3f66109036ec2e (patch)
tree17b26df37857b10b0da0971dabdeca166cf4caf2 /lib/linux_compat.c
parent267abc626da609560aecab83e06b187954974ba6 (diff)
downloadu-boot-imx-7da6fa27168c468e58814d54fe3f66109036ec2e.zip
u-boot-imx-7da6fa27168c468e58814d54fe3f66109036ec2e.tar.gz
u-boot-imx-7da6fa27168c468e58814d54fe3f66109036ec2e.tar.bz2
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]
Diffstat (limited to 'lib/linux_compat.c')
0 files changed, 0 insertions, 0 deletions