ext4: ignore last group w/o enough space when resizing instead of BUG'ing
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 5 Sep 2012 05:21:50 +0000 (01:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:38:48 +0000 (05:38 +0900)
commit2d5a1fbc0c25ab4a2e2770a5c729467893407009
tree9d029bbce61c83e01b2abcc6fede97b2778dd81a
parentb790ef23cd1fd3fece4777e90d85a945c4820ae7
ext4: ignore last group w/o enough space when resizing instead of BUG'ing

commit 03c1c29053f678234dbd51bf3d65f3b7529021de upstream.

If the last group does not have enough space for group tables, ignore
it instead of calling BUG_ON().

Reported-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/resize.c