mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Handle errors from spl_kern_path_locked()
When the Linux 3.6 KERN_PATH_LOCKED compatibility code was added
by commit bcb1589
an entirely new vn_remove() implementation was
added. That function did not properly handle an error from
spl_kern_path_locked() which would result in an panic. This
patch addresses the issue by returning the error to the caller.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #187
This commit is contained in:
parent
b84412a6e8
commit
053678f3b0
@ -332,6 +332,8 @@ vn_remove(const char *path, uio_seg_t seg, int flags)
|
||||
rc = vfs_unlink(parent.dentry->d_inode, dentry);
|
||||
exit1:
|
||||
dput(dentry);
|
||||
} else {
|
||||
return (-rc);
|
||||
}
|
||||
|
||||
spl_inode_unlock(parent.dentry->d_inode);
|
||||
|
Loading…
Reference in New Issue
Block a user