Message ID | cb83ea97-f6f8-9f07-0eba-dd338557e716@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index b43e535ced8a..41039ab12643 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c @@ -687,8 +687,7 @@ int cifs_mknod(struct inode *inode, struct dentry *direntry, umode_t mode, if (buf == NULL) { kfree(full_path); rc = -ENOMEM; - free_xid(xid); - return rc; + goto free_id; } if (backup_cred(cifs_sb)) @@ -744,8 +743,9 @@ int cifs_mknod(struct inode *inode, struct dentry *direntry, umode_t mode, mknod_out: kfree(full_path); kfree(buf); - free_xid(xid); cifs_put_tlink(tlink); +free_id: + free_xid(xid); return rc; }