projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a1b4cf
)
partitions: aix.c: off by one bug
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 5 Aug 2014 08:09:59 +0000
(11:09 +0300)
committer
Jens Axboe
<axboe@fb.com>
Tue, 5 Aug 2014 19:13:24 +0000
(13:13 -0600)
The lvip[] array has "state->limit" elements so the condition here
should be >= instead of >.
Fixes:
6ceea22bbbc8
('partitions: add aix lvm partition support files')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/partitions/aix.c
patch
|
blob
|
blame
|
history
diff --git
a/block/partitions/aix.c
b/block/partitions/aix.c
index 0a6ed546331dac8199cfec88e7dfc3d52aeb1822..f3ed7b2d89bf5eae8e4c128472c03fb174330e24 100644
(file)
--- a/
block/partitions/aix.c
+++ b/
block/partitions/aix.c
@@
-253,7
+253,7
@@
int aix_partition(struct parsed_partitions *state)
continue;
}
lv_ix = be16_to_cpu(p->lv_ix) - 1;
- if (lv_ix > state->limit) {
+ if (lv_ix >
=
state->limit) {
cur_lv_ix = -1;
continue;
}