vfs: add cleanup on error missed in r368375
Noted by: jrtc27
This commit is contained in:
parent
a1c4a3eaf1
commit
8fcfd0e222
@ -486,6 +486,7 @@ namei_getpath(struct nameidata *ndp)
|
||||
}
|
||||
|
||||
if (__predict_false(error != 0)) {
|
||||
namei_cleanup_cnp(cnp);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user