vfs: add cleanup on error missed in r368375

Noted by:	jrtc27
This commit is contained in:
Mateusz Guzik 2020-12-06 19:24:38 +00:00
parent a1c4a3eaf1
commit 8fcfd0e222

View File

@ -486,6 +486,7 @@ namei_getpath(struct nameidata *ndp)
}
if (__predict_false(error != 0)) {
namei_cleanup_cnp(cnp);
return (error);
}