o Remove the unnecessary acquisition and release of Giant around fdrop()

in mmap(2).
This commit is contained in:
Alan Cox 2002-06-23 01:48:22 +00:00
parent 74fbc9bb5b
commit 2cd301d1e1

View File

@ -423,11 +423,12 @@ mmap(td, uap)
flags, handle, pos);
if (error == 0)
td->td_retval[0] = (register_t) (addr + pageoff);
mtx_lock(&Giant);
goto done2;
done:
mtx_unlock(&Giant);
done2:
if (fp)
fdrop(fp, td);
mtx_unlock(&Giant);
return (error);
}