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)
Nov 25 2024, 4:01 PM
Unknown Object (File)
Oct 29 2024, 7:19 PM
Unknown Object (File)
Sep 25 2024, 9:44 AM
Unknown Object (File)
Sep 24 2024, 11:54 PM
Unknown Object (File)
Sep 18 2024, 4:43 AM
Unknown Object (File)
Sep 18 2024, 2:33 AM
Unknown Object (File)
Sep 8 2024, 9:49 AM
Unknown Object (File)
Sep 7 2024, 7:09 PM
Subscribers

Details

Summary

Reported by: Shawn Webb (HardenedBSD)

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.