From: Selvan Mani Date: Wed, 7 Nov 2012 13:03:37 +0000 (-0700) Subject: mtip32xx: fix potential crash on SEC_ERASE_UNIT X-Git-Tag: v3.7-rc7~9^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3208795e612406df04a32b46eb5ea5fccfa51d69;p=pandora-kernel.git mtip32xx: fix potential crash on SEC_ERASE_UNIT The mtip driver lifted this code from elsewhere and then added a special handling check for SEC_ERASE_UNIT. If the caller tries to do a security erase but passes no output data for the command then outbuf is not allocated and the driver duly explodes. Reported-by: Dan Carpenter Signed-off-by: Alan Cox Signed-off-by: Selvan Mani Signed-off-by: Asai Thambi S P Signed-off-by: Jens Axboe --- Reading git-diff-tree failed