- Do no try to drop a NULL filedesc pointer.

This commit is contained in:
stas 2011-05-12 10:56:33 +00:00
parent 5f9f795476
commit fc10099a3d

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);
}