network/gif - Correctly clear route cache on destroy.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 7 Apr 2014 07:37:56 +0000 (09:37 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Mon, 7 Apr 2014 08:09:59 +0000 (10:09 +0200)
commit4b09ee0ab7218a6be5e9ad91adfbc75d4f4db6bd
treed2717d0baef25f52ddc6ec6914626fa119c754de
parent141ff1a543b1cc6e33b9031fc934ca94723a1d8e
network/gif - Correctly clear route cache on destroy.

RTFREE() requires that the route is freed in the CPU it belongs to.
Migrating to the target CPU *before* calling it and returning to the
original CPU afterwards seems to do the trick.

Ok: @sephe
sys/net/gif/if_gif.c