- Do no try to drop a NULL filedesc pointer.

This commit is contained in:
Stanislav Sedov 2011-05-12 10:56:33 +00:00
parent 0daf62d9f5
commit ff6f41a472
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221808

View file

@ -3224,7 +3224,8 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER_ARGS)
}
FILEDESC_SUNLOCK(fdp);
fail:
fddrop(fdp);
if (fdp != NULL)
fddrop(fdp);
free(kif, M_TEMP);
return (error);
}