aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/cam_xpt.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-02-09 19:53:43 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-02-09 19:53:43 +0000
commiteb86c6c5b462c996e44c45ba496937b75ef22da3 (patch)
tree945e76ba510a6034ab6a2ffbbe636c412401cc51 /sys/cam/cam_xpt.c
parentb377ff8110e3489eb6e6b920b51a2384dfc4eb0b (diff)
downloadsrc-eb86c6c5b462c996e44c45ba496937b75ef22da3.tar.gz
src-eb86c6c5b462c996e44c45ba496937b75ef22da3.zip
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r--sys/cam/cam_xpt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 2acb106b087c..68aa6faae9a3 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -908,6 +908,8 @@ xpt_init(void *dummy)
* perform other XPT functions.
*/
devq = cam_simq_alloc(16);
+ if (devq == NULL)
+ return (ENOMEM);
xpt_sim = cam_sim_alloc(xptaction,
xptpoll,
"xpt",