Re: [U-Boot] [PATCH 1/2] dfu: mmc: check if mmc device exists in mmc_block_op()

2014-12-12 Thread Lukasz Majewski
Hi Przemyslaw, > 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

[U-Boot] [PATCH 1/2] dfu: mmc: check if mmc device exists in mmc_block_op()

2014-12-11 Thread Przemyslaw Marczak
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 --- drivers/dfu/dfu_mmc.c |