]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
partitions: aix.c: off by one bug
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 5 Aug 2014 08:09:59 +0000 (11:09 +0300)
committerJiri Slaby <jslaby@suse.cz>
Mon, 13 Oct 2014 13:41:40 +0000 (15:41 +0200)
commit0dd03a746211ee0b7a901e382fdf8c15acbde80c
tree5f894422ad7c88c911ed58d0d2e6b9e5c16ebdaa
parenta989feb087a51f54e00e36baace383cfffbf5fdb
partitions: aix.c: off by one bug

commit d97a86c170b4e432f76db072a827fe30b4d6f659 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
block/partitions/aix.c