aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/sdio.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-01-08 22:10:40 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-13 13:20:11 +0100
commit63928d4789ebb3f7d35d9261089b3bcc98ae0632 (patch)
tree5acb8abf5669b3e2abfe88770d7e56ad4b025531 /drivers/mmc/core/sdio.c
parentmmc: mmc_test: Use kcalloc() in mmc_test_alloc_mem() (diff)
downloadlinux-dev-63928d4789ebb3f7d35d9261089b3bcc98ae0632.tar.xz
linux-dev-63928d4789ebb3f7d35d9261089b3bcc98ae0632.zip
mmc: core: Use kmalloc_array() in mmc_alloc_sg()
* A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle software. * Replace the specification of a data structure by a pointer dereference to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/sdio.c')
0 files changed, 0 insertions, 0 deletions