mmc: rtsx: check sg_count before long data xfer
authorMicky Ching <micky_ching@realsil.com.cn>
Wed, 14 Jan 2015 03:09:12 +0000 (11:09 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 21 Jan 2015 12:58:44 +0000 (13:58 +0100)
commitbe186ad5826ab6a06b585802dd5052d9674699ac
treea6a6736f50aed83038ee9e871a6dd685c32f598f
parentb22217f966f585b69c823e0f525ee044e13d7976
mmc: rtsx: check sg_count before long data xfer

Check sg_count before sending long data xfer.
Because dma_map_sg() return int, and sg_count may be negative,
so using int instead of unsigned.

Signed-off-by: Micky Ching <micky_ching@realsil.com.cn>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/rtsx_pci_sdmmc.c