diff options
| author | Pan Xinhui <xinhuix.pan@intel.com> | 2015-09-09 15:37:05 -0700 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:59:38 +0200 |
| commit | 069855b70e052c6377965638b3eda7ca75dbc735 (patch) | |
| tree | 97cca1dbfa6fb96e00fbefce51a2392c17f47ee8 /include/linux/stringify.h | |
| parent | 8f8189364f23f4cf61302aa1e8d1bea33e3dfd7d (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 <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 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
