Hi,

On Mon, Jun 20, 2016 at 9:34 PM, Tomasz Figa <[email protected]> wrote:
> From: Shunqian Zheng <[email protected]>
>
> In .probe(), devm_kzalloc() is called with size == 0 and works only
> by luck, due to internal behavior of the allocator and the fact
> that the proper allocation size is small. Let's use proper value for
> calculating the size.
>
> Fixes: cd6438c5f844 ("iommu/rockchip: Reconstruct to support multi slaves")
>
> Signed-off-by: Shunqian Zheng <[email protected]>
> Signed-off-by: Tomasz Figa <[email protected]>
> ---
>  drivers/iommu/rockchip-iommu.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Reviewed-by: Douglas Anderson <[email protected]>

Reply via email to