diff options
author | 2013-07-03 15:04:53 -0700 | |
---|---|---|
committer | 2013-07-03 16:07:41 -0700 | |
commit | 98bd8d05ea5798ff3179ee33f0ca2789722ecc5a (patch) | |
tree | 370a982aa598bdf50f31ab0f3b3cccba62143ddc /mm/backing-dev.c | |
parent | arch/frv/kernel/traps.c: using vsnprintf() instead of vsprintf() (diff) | |
download | wireguard-linux-98bd8d05ea5798ff3179ee33f0ca2789722ecc5a.tar.xz wireguard-linux-98bd8d05ea5798ff3179ee33f0ca2789722ecc5a.zip |
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 <gang.chen@asianux.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/backing-dev.c')
0 files changed, 0 insertions, 0 deletions