From: Takashi Iwai Date: Tue, 5 Jul 2011 07:25:59 +0000 (+0200) Subject: ASoC: Don't set invalid name string to snd_card->driver field X-Git-Tag: v3.0-rc7~11^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=873bd4cb4fbba6a3e99f750e17ef2ba6ef96e9d3;p=pandora-kernel.git ASoC: Don't set invalid name string to snd_card->driver field The snd_card->driver field contains a driver name string, and in general it shouldn't contain space or special letters. The commit 2b39535b9e54888649923beaab443af212b6c0fd changed the string copy from card->name, but the long name string may contain such letters, thus it may still lead to a segfault. A temporary fix is not to copy the long name string but just keep it empty as the earlier version did. Reported-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed