]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: handle memory allocation failure from blkmap_grow
authorDave Chinner <dchinner@redhat.com>
Mon, 10 Oct 2011 01:08:33 +0000 (01:08 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 13 Oct 2011 10:01:13 +0000 (05:01 -0500)
commit75372fed044c75742958af3df651d2b1b1b61eae
treebd35e76f5c41267bd02f69986b31ceb98c7e1fcb
parente33b06a38d25afc791a115efa1b70a6c41e23329
repair: handle memory allocation failure from blkmap_grow

If blkmap_grow fails to allocate a new chunk of memory, it returns
with a null blkmap. The sole caller of blkmap_grow does not check
for this failure, and so will segfault if this error ever occurs.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
repair/bmap.c
repair/bmap.h
repair/dinode.c