Page MenuHomeFreeBSD

linuxkpi: Fix an error path in linux_alloc_current()
ClosedPublic

Authored by markj on Mon, Jan 12, 6:56 PM.
Tags
None
Referenced Files
F142773277: D54671.id169533.diff
Fri, Jan 23, 10:29 AM
F142772395: D54671.diff
Fri, Jan 23, 10:11 AM
F142720798: D54671.id.diff
Thu, Jan 22, 4:16 PM
Unknown Object (File)
Sun, Jan 18, 4:44 PM
Unknown Object (File)
Sun, Jan 18, 12:31 PM
Unknown Object (File)
Sat, Jan 17, 2:08 AM
Unknown Object (File)
Thu, Jan 15, 11:14 PM
Unknown Object (File)
Thu, Jan 15, 9:58 AM
Subscribers

Details

Summary

If the allocation fails we should free the task struct.

While here get rid of a strange assertion.

Reported by: Kevin Day <kevin@your.org>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

There's the same assertion earlier in the fn for the ts allocation.

This revision is now accepted and ready to land.Wed, Jan 14, 4:32 PM

There's the same assertion earlier in the fn for the ts allocation.

Thanks, I'll get rid of that one too.