]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Check the return value of xfs_buf_read() for NULL
authorChandra Seetharaman <sekharan@us.ibm.com>
Wed, 3 Aug 2011 02:18:29 +0000 (02:18 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 12 Aug 2011 18:39:29 +0000 (13:39 -0500)
commit662c5f526b8ceff1ce576f186852c6023b4129bf
tree6a39e3be9bcf99cddc0ce0b0ed15aac794b527f8
parent9464861fad050e40a0ac60bb142a1eeba79da2cf
xfs: Check the return value of xfs_buf_read() for NULL

Check the return value of xfs_buf_read() for NULL and return ENOMEM
if it is NULL.  This is necessary in a few spots to avoid subsequent
code blindly dereferencing the null buffer pointer.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_vnodeops.c