aboutsummaryrefslogtreecommitdiff
path: root/include/linux/string_helpers.h
diff options
context:
space:
mode:
authorPan Xinhui <[email protected]>2015-09-09 15:37:05 -0700
committerLinus Torvalds <[email protected]>2015-09-10 13:29:01 -0700
commitd9282cb66353be502aae09aae75d05a6863eb979 (patch)
tree78ae23870c4f19225303b2d820cebd87aa1153ed /include/linux/string_helpers.h
parentd21c3d4d1c6b2a0b85aeae5cc774b1bacc64e5b4 (diff)
lib/bitmap.c: fix a special string handling bug in __bitmap_parselist
If string end with '-', for exapmle, bitmap_parselist("1,0-",&mask, nmaskbits), It is not in a valid pattern, so add a check after loop. Return -EINVAL on such condition. Signed-off-by: Pan Xinhui <[email protected]> Cc: Yury Norov <[email protected]> Cc: Chris Metcalf <[email protected]> Cc: Rasmus Villemoes <[email protected]> Cc: Sudeep Holla <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/string_helpers.h')
0 files changed, 0 insertions, 0 deletions