aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorJesper Nilsson <[email protected]>2009-06-11 19:09:00 +0200
committerJesper Nilsson <[email protected]>2009-06-11 19:09:00 +0200
commit91a120d03fd901fc8b95e85af7903358c5862d65 (patch)
treee2ca1d2bedaf65fdaa41a8266fedff9ffe47de53 /drivers/mtd/lpddr/lpddr_cmds.c
parent7f2ff23db1de53ea8695bb4a7c1cfab88886e3fd (diff)
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 <[email protected]> Signed-off-by: Jesper Nilsson <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions