Hi,
If sc happens to not be set to RTEMS_SUCCESSFUL, this function will not swap
the workers... probably won't happen, but submitting a patch anyway.
Thanks,
Cindy
From 4e69f5b65a562dc37034a2f9a0478fa9f26b5f68 Mon Sep 17 00:00:00 2001
From: Cynthia Rempel <cynt...@rtems.org>
Date: Thu, 22 Aug 2013 20:46:23 -0700
Subject: [PATCH 1/1] Initialize sc to RTEMS_SUCCESSFUL If sc happens to not be
set to RTEMS_SUCCESSFUL, this function will not swap the workers... probably
won't happen, but submitting a patch anyway
---
cpukit/libblock/src/bdbuf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c
index 0fbafaa..dddcb6f 100644
--- a/cpukit/libblock/src/bdbuf.c
+++ b/cpukit/libblock/src/bdbuf.c
@@ -1341,7 +1341,8 @@ rtems_bdbuf_swapout_worker_task (rtems_task_argument arg);
static rtems_status_code
rtems_bdbuf_swapout_workers_create (void)
{
- rtems_status_code sc;
+ /* ensure the status code indicates failure for this function to fail */
+ rtems_status_code sc = RTEMS_SUCCESSFUL;
size_t w;
size_t worker_size;
char *worker_current;
--
1.8.1.2
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel