On 04/12/16 07:24, Pan Bian wrote:
> From: Pan Bian
>
> The return variable rc is initialized with "-ENOMEM" outside the loop.
> However, it is reset in the loop, and its value is not negative during
> the second or after repeat of the loop. If kzalloc() fails then, it will
> return 0. This pat
From: Pan Bian
The return variable rc is initialized with "-ENOMEM" outside the loop.
However, it is reset in the loop, and its value is not negative during
the second or after repeat of the loop. If kzalloc() fails then, it will
return 0. This patch fixes the bug, assigning "-ENOMEM" to rc whe