]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: always check the length of sglist with total data size
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 19 Jul 2017 07:55:45 +0000 (15:55 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:33 +0000 (14:01 +0200)
commit6a285ce80de4511818de79219bd3a6fc98318b52
treef43863fd39fe976411b8a225d2dff863260f5b84
parenteec637ed926e0483454fb232e713f8d62bd4908e
mmc: core: always check the length of sglist with total data size

All the check within mmc_mrq_prep seems to be all-or-none
proposition, so it doesn't make sense to only check the
length of sglist only under the CONFIG_MMC_DEBUG context.
I'd prefer to always keep the check there unconditionally.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c