Re: [PATCH] MIPS: ath25: check for kzalloc allocation failure

From: James Hogan
Date: Fri Feb 23 2018 - 04:52:33 EST


On Thu, Feb 22, 2018 at 05:50:12PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Currently there is no null check on a failed allocation of board_data,
> and hence a null pointer dereference will occurr. Fix this by checking
> for the out of memory null pointer.
>
> Fixes: a7473717483e ("MIPS: ath25: add board configuration detection")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied to my fixes branch with 3.19+ stable tag.

Thanks
James

Attachment: signature.asc
Description: Digital signature