From: Chen Gang Date: Wed, 3 Jul 2013 22:04:53 +0000 (-0700) Subject: arch/frv/kernel/setup.c: use strncmp() instead of memcmp() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~263 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98bd8d05ea5798ff3179ee33f0ca2789722ecc5a;p=pandora-kernel.git arch/frv/kernel/setup.c: use strncmp() instead of memcmp() 'cmdline' is a NUL terminated string, when its length < 4, memcmp() will cause memory access out of boundary. So use strncmp() instead of memcmp(). Signed-off-by: Chen Gang Cc: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed