summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2008-08-06 04:38:53 +0000
committerChris Johns <chrisj@rtems.org>2008-08-06 04:38:53 +0000
commit6f162ed27ad60bcfcbfccf318df01e729f455123 (patch)
tree2b66b4003a578ec096f066f83522dba3115865ec /cpukit/libblock
parent2008-08-06 Brett Swimley <brett.swimley@aedbozeman.com> (diff)
downloadrtems-6f162ed27ad60bcfcbfccf318df01e729f455123.tar.bz2
2008-08-06 Chris Johns <chrisj@rtems.org>
* libblock/src/bdbuf.c: PR1272. Fixed similar possible issues in the new bdbuf code.
Diffstat (limited to 'cpukit/libblock')
-rw-r--r--cpukit/libblock/src/bdbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c
index 4e062df8b6..47ce0522e9 100644
--- a/cpukit/libblock/src/bdbuf.c
+++ b/cpukit/libblock/src/bdbuf.c
@@ -1451,8 +1451,6 @@ rtems_bdbuf_get (dev_t device,
pool = rtems_bdbuf_get_pool (dd->phys_dev->pool);
- rtems_disk_release(dd);
-
rtems_bdbuf_lock_pool (pool);
#if RTEMS_BDBUF_TRACE
@@ -1468,6 +1466,8 @@ rtems_bdbuf_get (dev_t device,
rtems_bdbuf_unlock_pool (pool);
+ rtems_disk_release(dd);
+
*bdp = bd;
return RTEMS_SUCCESSFUL;