diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-02-22 17:50:12 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-18 11:18:49 +0100 |
commit | 407795ea0ead051a6d3263054a5eb28b97840394 (patch) | |
tree | e4fcac78a119632d980d88007044bfd20d41d5be /.cocciconfig | |
parent | 4bd523ffe14578c9d840ec59e640cc4757ff37d2 (diff) |
MIPS: ath25: Check for kzalloc allocation failure
commit 1b22b4b28fd5fbc51855219e3238b3ab81da8466 upstream.
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@canonical.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 3.19+
Patchwork: https://patchwork.linux-mips.org/patch/18657/
Signed-off-by: James Hogan <jhogan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions