From: Dan Carpenter Date: Fri, 20 Feb 2009 23:38:46 +0000 (-0800) Subject: sx.c: avoid referencing freed memory if copy_from_user() fails X-Git-Tag: v2.6.29-rc6~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b28fe28f2a07ee325834179174a95495d2786561;p=pandora-kernel.git sx.c: avoid referencing freed memory if copy_from_user() fails The "break" would just result in reusing a free'd pointer. I don't have the cards myself to test it though. :/ Signed-off-by: Dan Carpenter Cc: Ilpo Järvinen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed