aboutsummaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorGravatar Yury Norov <ynorov@marvell.com> 2019-05-14 15:44:46 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2019-05-14 19:52:50 -0700
commit3713a4e1fdb8da86f96a3e770b08e278d97529b4 (patch)
tree724fa45759fee26161ee2c34e9c060a431561cfe /mm
parentexec selftests: test ->recursion_depth (diff)
downloadlinux-3713a4e1fdb8d.tar.gz
linux-3713a4e1fdb8d.tar.bz2
linux-3713a4e1fdb8d.zip
include/linux/cpumask.h: fix double string traverse in cpumask_parse
cpumask_parse() finds first occurrence of either or strchr() and strlen(). We can do it better with a single call of strchrnul(). [akpm@linux-foundation.org: remove unneeded cast] Link: http://lkml.kernel.org/r/20190409204208.12190-1-ynorov@marvell.com Signed-off-by: Yury Norov <ynorov@marvell.com> Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions