Check for Null return of affs_bread in function affs_truncate
Subsystems (2)
PATCH 1/1 Check for Null return of affs_bread in function affs_truncate
Signed-off-by Nicholas Krause <[email protected]>
--- fs/affs/file.c | 2 ++ 1 file changed, 2 insertions(+)
fs/affs/file.c +2 -0
@@ -923,6 +923,8 @@ affs_truncate(struct inode *inode)while (ext_key) { ext_bh =affs_bread (sb, ext_key); +if (!ext_bh) + goto err; size =AFFS_SB (sb)->s_hashsize;if (size > blkcnt - blk) size = blkcnt - blk;
Signature · 1 line
1.9.1
This doesn't compile at all.
regards,
dan carpenter