diff options
| author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-01-22 14:18:42 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-24 07:57:12 +0200 |
| commit | 67c44831dd48adc8b90a9e3c939880573bb8e081 (patch) | |
| tree | 1a7971d6423d0ca7bd9bf52edb6660358f84d5b7 /scripts/objdiff | |
| parent | 06bb14725731fae3dcb71f0d9f0520d76b92f799 (diff) | |
MIPS: OCTEON: irq: Fix potential NULL pointer dereference
commit 792a402c2840054533ef56279c212ef6da87d811 upstream.
There is a potential NULL pointer dereference in case kzalloc()
fails and returns NULL.
Fix this by adding a NULL check on *cd*
This bug was detected with the help of Coccinelle.
Fixes: 64b139f97c01 ("MIPS: OCTEON: irq: add CIB and other fixes")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
