]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: unhandled error check in libxfs_trans_read_buf
authorAjeet Yadav <ajeet.yadav.77@gmail.com>
Thu, 3 Feb 2011 06:17:24 +0000 (06:17 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 22 Feb 2011 01:35:26 +0000 (19:35 -0600)
commitd87e8a45d9a3b4ed066f1d3358c78d66ab475255
tree15fc86dcc2239e0f5d95b8b2121d3c19127ece05
parente127d47bf2b816d1d9b8583d6f429b351e41176f
xfsprogs: unhandled error check in libxfs_trans_read_buf

libxfs_trans_read_buf() is used in both mkfs.xfs & xfs_repair.
During stability testing we found some time occur pagefault in
mkfs.xfs, code inspection shows that if libxfs_readbuf() fails then
occurs a page fault in xfs_buf_item_init() called in
libxfs_trans_read_buf().

mkfs.xfs: unhandled page fault (11) at 0x00000070, code 0x017

Added NULL check and errno handling.

Signed-off-by: Ajeet Yadav <ajeet.yadav.77@gmail.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
libxfs/rdwr.c
libxfs/trans.c