]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: mmc_test: align max_seg_size
authorPer Forlin <per.forlin@stericsson.com>
Mon, 14 Nov 2011 11:04:24 +0000 (12:04 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 1 Dec 2011 17:44:17 +0000 (12:44 -0500)
commit64d61ba67d7411846dc2257c16ec76b74644cb31
tree9bbf045573e6508cbd882376d8fdc7f8075d9af6
parentdb8ee3b665fa13e6076f72fa15dcfb315bdd10b8
mmc: mmc_test: align max_seg_size

If max_seg_size is unaligned, mmc_test_map_sg() may create sg element
sizes that are not aligned with 512 byte. Fix, align max_seg_size at
mmc_test_area_init().

Signed-off-by: Per Forlin <per.forlin@stericsson.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/mmc_test.c