Page MenuHomeFreeBSD

9pfs: move NULL check immediately after allocation
ClosedPublic

Authored by emaste on Jun 24 2024, 4:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 9:16 PM
Unknown Object (File)
Wed, Oct 15, 9:16 PM
Unknown Object (File)
Wed, Oct 15, 9:16 PM
Unknown Object (File)
Wed, Oct 15, 10:57 AM
Unknown Object (File)
Sun, Oct 12, 11:27 AM
Unknown Object (File)
Wed, Sep 24, 2:57 AM
Unknown Object (File)
Fri, Sep 19, 5:18 AM
Unknown Object (File)
Sep 4 2025, 5:57 AM
Subscribers

Diff Detail

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

Event Timeline

emaste created this revision.
emaste edited reviewers, added: dfr; removed: d.raith_comcast.net.
emaste added a reviewer: lattera-gmail.com.
This revision is now accepted and ready to land.Jun 24 2024, 4:24 PM
markj added inline comments.
sys/dev/virtio/p9fs/virtio_p9fs.c
334

This can just be an M_WAITOK allocation. We use malloc(M_WAITOK) further below, and device_attach routines are allowed to sleep in general.