From: Dan Carpenter Date: Tue, 29 Oct 2013 20:00:15 +0000 (+0300) Subject: staging: wlags49_h2: buffer overflow setting station name X-Git-Tag: v3.12~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5e2f339865fb443107e5b10603e53bbc92dc054;p=pandora-kernel.git staging: wlags49_h2: buffer overflow setting station name We need to check the length parameter before doing the memcpy(). I've actually changed it to strlcpy() as well so that it's NUL terminated. You need CAP_NET_ADMIN to trigger these so it's not the end of the world. Reported-by: Nico Golde Reported-by: Fabian Yamaguchi Signed-off-by: Dan Carpenter Cc: stable@kernel.org Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed