diff options
author | John Baldwin <jhb@FreeBSD.org> | 2024-02-09 19:53:43 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2024-02-09 19:53:43 +0000 |
commit | eb86c6c5b462c996e44c45ba496937b75ef22da3 (patch) | |
tree | 945e76ba510a6034ab6a2ffbbe636c412401cc51 /sys/cam/cam_xpt.c | |
parent | b377ff8110e3489eb6e6b920b51a2384dfc4eb0b (diff) | |
download | src-eb86c6c5b462c996e44c45ba496937b75ef22da3.tar.gz src-eb86c6c5b462c996e44c45ba496937b75ef22da3.zip |
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r-- | sys/cam/cam_xpt.c | 2 |
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", |