diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-01-08 22:10:40 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-13 13:20:11 +0100 |
commit | 63928d4789ebb3f7d35d9261089b3bcc98ae0632 (patch) | |
tree | 5acb8abf5669b3e2abfe88770d7e56ad4b025531 /drivers/mmc/core/sdio.c | |
parent | 3972a20b51c8bb887d13f5656d6fa93bf3d4fc46 (diff) | |
download | blackbird-obmc-linux-63928d4789ebb3f7d35d9261089b3bcc98ae0632.tar.gz blackbird-obmc-linux-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