]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:11 +0000 (13:41 -0700)
commit9b117b107be45ede788bf6656766424f67b0dd0f
treedc89532b82796d32af6c0a0bcce68a003a304826
parent65862be0ad074568447ec9939f79f553e1ac84da
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/partitions/aix.c