io: block: fix unaligned buffer
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Thu, 28 Jul 2016 02:15:32 +0000 (10:15 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Thu, 4 Aug 2016 01:53:29 +0000 (09:53 +0800)
commit9d063aa2e86bc3dc8abf866614607b973358cebb
tree208e2e8902c7c250d0612ad0e58ba439c317a058
parent3d99b17f60142ef96d39759132d4448e138b6c4e
io: block: fix unaligned buffer

If buffer address parameter isn't aligned, it may cause
DMA issue in block device driver, as eMMC. Now check the buffer
address. If it's not aligned, use temporary buffer in io block
driver instead.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
drivers/io/io_block.c