This scenario arose when testing iwlwifi, when iwl_trans_pcie_alloc()
fails at the "wrong" point. Linux handles a NULL pointer here, so let's
do the same.
Details
Details
- Reviewers
bz emaste - Group Reviewers
linuxkpi - Commits
- rGa76de17715ab: linuxkpi: Handle a NULL cache pointer in kmem_cache_destroy()
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/compat/linuxkpi/common/src/linux_slab.c | ||
---|---|---|
196 | We're already using unlikely()s here, maybe add it on this test? |
Comment Actions
If you have a log from iwlwifi along with hardware information please email that over as well.
sys/compat/linuxkpi/common/src/linux_slab.c | ||
---|---|---|
196 | It really doesn't make sense here, this function is very expensive and rarely called. |