summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2009-06-11 17:09:00 (GMT)
committerJesper Nilsson <jesper.nilsson@axis.com>2009-06-11 17:09:00 (GMT)
commit91a120d03fd901fc8b95e85af7903358c5862d65 (patch)
treee2ca1d2bedaf65fdaa41a8266fedff9ffe47de53 /arch/mips
parent7f2ff23db1de53ea8695bb4a7c1cfab88886e3fd (diff)
downloadlinux-fsl-qoriq-91a120d03fd901fc8b95e85af7903358c5862d65.tar.xz
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: Daniel Marjamäki <danielm77@spray.se> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions