From 2da05343e28c86964daa91d572bb0c5331c362ae Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Wed, 30 Oct 2024 11:33:17 +0100 Subject: [PATCH] Avoid UBSAN false positive - continuation Address issue in two more instances. Signed-off-by: Robert Baldyga --- src/ocf_request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ocf_request.c b/src/ocf_request.c index bc144331..6e383270 100644 --- a/src/ocf_request.c +++ b/src/ocf_request.c @@ -148,7 +148,7 @@ struct ocf_request *ocf_req_new_cleaner(ocf_cache_t cache, ocf_queue_t queue, if (map_allocated) { req->map = req->__map; - req->alock_status = (uint8_t*)&req->__map[count]; + req->alock_status = (uint8_t*)&req->map[count]; req->alloc_core_line_count = count; } else { req->alloc_core_line_count = 1; @@ -288,7 +288,7 @@ struct ocf_request *ocf_req_new_cache(ocf_cache_t cache, ocf_queue_t queue, if (map_allocated) { req->map = req->__map; - req->alock_status = (uint8_t *)&req->__map[core_line_count]; + req->alock_status = (uint8_t *)&req->map[core_line_count]; req->alloc_core_line_count = core_line_count; } else { req->alloc_core_line_count = 1;