]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: fix setup_cursor array allocation
authorEric Sandeen <sandeen@redhat.com>
Sat, 26 Jan 2013 22:40:27 +0000 (22:40 +0000)
committerMark Tinguely <tinguely@eagdhcp-232-136.americas.sgi.com>
Thu, 21 Feb 2013 16:09:11 +0000 (10:09 -0600)
commit2c2e994d0a1b972d020d7633202bf2f4cfc9f91b
treeef2d0ab59aa1fc616442c4fe928826a69dcc5773
parent55d1fd480b7328f0c51a7de5ed64ea371927c933
libxfs: fix setup_cursor array allocation

setup_cursor() wants an array of xfs_agbno_t's, but
it allocated a multiple of *pointers* to xfs_agbno_t's.
xfs_agbno_t is 4 bytes, so this is harmless other than
allocating twice as much memory as needed on a 64-bit
machine.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Mark Tinguely <tinguely@sgi.com>
repair/phase5.c