From: Jesper Nilsson Date: Thu, 11 Jun 2009 17:09:00 +0000 (+0200) Subject: CRISv32: Fix potential null reference in cryptocop driver. X-Git-Tag: v2.6.31-rc1~37^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91a120d03fd901fc8b95e85af7903358c5862d65;p=pandora-kernel.git 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 Signed-off-by: Jesper Nilsson --- Reading git-diff-tree failed