diff options
author | Pan Xinhui <xinhuix.pan@intel.com> | 2015-09-10 01:37:08 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-10 23:29:01 +0300 |
commit | 9bf98f168b7b004c94c766a6989071e0f858def3 (patch) | |
tree | 8639fa0b9de8011692d06d06d6756ff372d3f5f0 /lib/842 | |
parent | d9282cb66353be502aae09aae75d05a6863eb979 (diff) | |
download | linux-9bf98f168b7b004c94c766a6989071e0f858def3.tar.xz |
lib/bitmap.c: bitmap_parselist can accept string with whitespaces on head or tail
In __bitmap_parselist we can accept whitespaces on head or tail during
every parsing procedure. If input has valid ranges, there is no reason to
reject the user.
For example, bitmap_parselist(" 1-3, 5, ", &mask, nmaskbits). After
separating the string, we get " 1-3", " 5", and " ". It's possible and
reasonable to accept such string as long as the parsing result is correct.
Signed-off-by: Pan Xinhui <xinhuix.pan@intel.com>
Cc: Yury Norov <yury.norov@gmail.com>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/842')
0 files changed, 0 insertions, 0 deletions