K 10 svn:author V 3 avg K 8 svn:date V 27 2017-11-01T10:53:10.716138Z K 7 svn:log V 816 geom_slice: fix r325227, protect against multiple calls to g_slice_free This geom does not immediately detach its consumer relying on the wither-washer to do that. Since that happens asynchronously we may get additional spoiling events. So, we need to account for that. There are multiple options for fixing this issue like detaching immediately or checking for G_CF_ORPHAN in g_slice_spoiled(). The most reliable and least intrusive fix seems to be setting geom->softc to NULL on the first call and checking for NULL on subsequent calls. This is something that the code did before r325227. Reported by: David Wolfskill , O. Hartmann Tested by: David Wolfskill (earlier version) Discussed with: mav MFC after: 1 week X-MFC with: r325227 END