Page MenuHomeFreeBSD

linuxkpi: Fix an error path in linux_alloc_current()
AcceptedPublic

Authored by markj on Mon, Jan 12, 6:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 13, 10:16 PM
Unknown Object (File)
Tue, Jan 13, 3:23 PM
Unknown Object (File)
Tue, Jan 13, 7:53 AM
Subscribers

Details

Reviewers
emaste
Group Reviewers
linuxkpi
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 69829
Build 66712: arc lint + arc unit

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.