X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Focfs2%2Fvote.c;h=ee42765a8553e9c5ed51e47805f9bd1440679399;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=cf70fe2075b8f58e1a4109e7872da1cc7c246c21;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/fs/ocfs2/vote.c b/fs/ocfs2/vote.c index cf70fe207..ee42765a8 100644 --- a/fs/ocfs2/vote.c +++ b/fs/ocfs2/vote.c @@ -988,7 +988,9 @@ int ocfs2_request_mount_vote(struct ocfs2_super *osb) } bail: - kfree(request); + if (request) + kfree(request); + return status; } @@ -1019,7 +1021,9 @@ int ocfs2_request_umount_vote(struct ocfs2_super *osb) } bail: - kfree(request); + if (request) + kfree(request); + return status; }