Skip to content
Commit 91a120d0 authored by Jesper Nilsson's avatar Jesper Nilsson
Browse files

CRISv32: Fix potential null reference in cryptocop driver.



The code didn't test the pointer to the newly allocated
memory, but a parameter sent in as value.
Since the input parameter was most often set, the code
would have used a null pointer if the kmalloc failed.
If the input parameter was not set, the code would
leak the allocated buffer.

http://bugzilla.kernel.org/show_bug.cgi?id=11363

Reported-by: default avatarDaniel Marjamäki <danielm77@spray.se>
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent 7f2ff23d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment