Use RTFREE_LOCKED() instead of rtfree() when releasing a reference on the

'rt' route in rtredirect() as 'rt' is always locked.

MFC after:	1 week
PR:		kern/117913
Submitted by:	Stefan Lambrev  stefan.lambrev of moneybookers.com
This commit is contained in:
jhb 2008-02-13 16:57:58 +00:00
parent 234b4ba1f7
commit f3a2cbebdb

View File

@ -404,7 +404,7 @@ rtredirect(struct sockaddr *dst,
error = EHOSTUNREACH;
done:
if (rt)
rtfree(rt);
RTFREE_LOCKED(rt);
out:
if (error)
rtstat.rts_badredirect++;