diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2011-09-20 09:56:55 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-10-11 22:15:01 -0400 |
commit | 2a30f36d9069b0646dcdd73def5fd7ab674bffd6 (patch) | |
tree | d7be19830eaa3c85b9e06882ccec369630ce9ca2 /fs/xfs/xfs_dquot.c | |
parent | b522950f0ab8551f2ef56c210ebd50e6c6396601 (diff) |
xfs: Check the return value of xfs_trans_get_buf()
Check the return value of xfs_trans_get_buf() and fail
appropriately.
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dquot.c')
-rw-r--r-- | fs/xfs/xfs_dquot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c index 3e2ccaedc51e..0c5fe66ce92b 100644 --- a/fs/xfs/xfs_dquot.c +++ b/fs/xfs/xfs_dquot.c | |||
@@ -402,8 +402,11 @@ xfs_qm_dqalloc( | |||
402 | dqp->q_blkno, | 402 | dqp->q_blkno, |
403 | mp->m_quotainfo->qi_dqchunklen, | 403 | mp->m_quotainfo->qi_dqchunklen, |
404 | 0); | 404 | 0); |
405 | if (!bp || (error = xfs_buf_geterror(bp))) | 405 | |
406 | error = xfs_buf_geterror(bp); | ||
407 | if (error) | ||
406 | goto error1; | 408 | goto error1; |
409 | |||
407 | /* | 410 | /* |
408 | * Make a chunk of dquots out of this buffer and log | 411 | * Make a chunk of dquots out of this buffer and log |
409 | * the entire thing. | 412 | * the entire thing. |