Fix OOM error handling [3/5]
Quoted 1 line
From
26d83dedf61d26d85f10bc34b92f4de7660fd746Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Mon, 30 Oct 2006 16:59:08 -0500
Subject: [PATCH] [GFS2] Fix OOM error handling
Fix the OOM error handling in inode.c where it was possible for a NULL pointer to be dereferenced.
Signed-off-by Steven Whitehouse <[email protected]>
--- fs/gfs2/inode.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
fs/gfs2/inode.c +3 -0
@@ -157,6 +157,9 @@ struct inode *gfs2_inode_lookup(struct sstruct gfs2_glock *io_gl;int error; +if (!inode) +return ERR_PTR (-ENOBUFS ); +if (inode->i_state &I_NEW ) {struct gfs2_sbd *sdp =GFS2_SB (inode);umode_t mode =DT2IF (type);
Signature · 1 line
1.4.1