From b980c3ea5fcc54aa543fd5e96212b7fb892d42a5 Mon Sep 17 00:00:00 2001 From: Alex Markuze Date: Wed, 26 Feb 2025 20:10:39 +0000 Subject: [PATCH] some alloc errors --- net/ceph/ceph_san.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/ceph/ceph_san.c b/net/ceph/ceph_san.c index a54fc0ba300b5..e23e50045610c 100644 --- a/net/ceph/ceph_san.c +++ b/net/ceph/ceph_san.c @@ -68,8 +68,10 @@ static struct tls_ceph_san_context *get_cephsan_context(void) { return context; context = kmem_cache_alloc(ceph_san_tls_logger_cache, GFP_KERNEL); - if (!context) + if (!context) { + pr_err("Failed to allocate TLS logger for PID %d\n", current->pid); return NULL; + } context->logger.pid = current->pid; memcpy(context->logger.comm, current->comm, TASK_COMM_LEN); -- 2.39.5