]> git.baikalelectronics.ru Git - kernel.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, 12 Jan 2012 04:58:41 +0000 (23:58 -0500)
commit0b984ee91c01feb3620f45d5757a6dd2a45fa12b
treedeee953fce0ce8e01438301f863685c1be89d7a5
parent7d9137ffbad6b6b3f37545af6a637606c343383b
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