> -----Original Message----- > From: Fred Isaman [mailto:iisaman@xxxxxxxxxx] > Sent: Thursday, April 05, 2012 12:27 PM > To: linux-nfs@xxxxxxxxxxxxxxx > Cc: Myklebust, Trond > Subject: [PATCH 1/1] NFS: check for req==NULL in > nfs_try_to_update_request cleanup > > Signed-off-by: Fred Isaman <iisaman@xxxxxxxxxx> > --- > fs/nfs/write.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 2c68818..9b8d4d4 100644 > --- a/fs/nfs/write.c > +++ b/fs/nfs/write.c > @@ -682,7 +682,8 @@ static struct nfs_page > *nfs_try_to_update_request(struct inode *inode, > req->wb_bytes = rqend - req->wb_offset; > out_unlock: > spin_unlock(&inode->i_lock); > - nfs_clear_request_commit(req); > + if (req) > + nfs_clear_request_commit(req); > return req; > out_flushme: > spin_unlock(&inode->i_lock); > -- > 1.7.2.1 Thanks Fred! Applied and pushed to the bugfixes and linux-next branches. Cheers Trond ��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥