Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1626698

Re: [PATCH 3/6] clk: hisilicon: Use devm_kmalloc_array() in hisi_clk_alloc()

From Stephen Boyd <sboyd@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH 3/6] clk: hisilicon: Use devm_kmalloc_array() in hisi_clk_alloc()
Date 2017-04-19 20:40 +0200
Message-ID <ty2Gf-6Qx-53@gated-at.bofh.it> (permalink)
References <txxM6-4vX-21@gated-at.bofh.it> <txxVL-4zJ-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 04/18, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Tue, 18 Apr 2017 10:15:19 +0200
> 
> * A multiplication for the size determination of a memory allocation
>   indicated that an array data structure should be processed.
>   Thus use the corresponding function "devm_kmalloc_array".
> 
>   This issue was detected by using the Coccinelle software.
> 
> * Replace the specification of a data type 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>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] clk-Hisilicon: Fine-tuning for some function  implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-04-18 11:40 +0200
  [PATCH 6/6] clk: hi3620: Fix a typo in one variable name SF Markus Elfring <elfring@users.sourceforge.net> - 2017-04-18 11:50 +0200
    Re: [PATCH 6/6] clk: hi3620: Fix a typo in one variable name Stephen Boyd <sboyd@codeaurora.org> - 2017-04-19 20:40 +0200
  [PATCH 4/6] clk: hi3620: Use kcalloc() in hi3620_mmc_clk_init() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-04-18 11:50 +0200
    Re: [PATCH 4/6] clk: hi3620: Use kcalloc() in hi3620_mmc_clk_init() Stephen Boyd <sboyd@codeaurora.org> - 2017-04-19 20:40 +0200
  [PATCH 2/6] clk: hisilicon: Delete error messages for failed memory  allocations in hisi_clk_init() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-04-18 11:50 +0200
    Re: [PATCH 2/6] clk: hisilicon: Delete error messages for failed  memory allocations in hisi_clk_init() Stephen Boyd <sboyd@codeaurora.org> - 2017-04-19 20:40 +0200
  [PATCH 5/6] clk: hi3620: Delete error messages for a failed memory  allocation in two functions SF Markus Elfring <elfring@users.sourceforge.net> - 2017-04-18 11:50 +0200
    Re: [PATCH 5/6] clk: hi3620: Delete error messages for a failed  memory allocation in two functions Stephen Boyd <sboyd@codeaurora.org> - 2017-04-19 20:40 +0200
  [PATCH 3/6] clk: hisilicon: Use devm_kmalloc_array() in  hisi_clk_alloc() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-04-18 11:50 +0200
    Re: [PATCH 3/6] clk: hisilicon: Use devm_kmalloc_array() in  hisi_clk_alloc() Stephen Boyd <sboyd@codeaurora.org> - 2017-04-19 20:40 +0200

csiph-web