libblockdriver: attribute usage bugfix

This commit is contained in:
David van Moolenbroek 2012-02-15 14:22:45 +01:00
parent 9ab3cf37ce
commit 1ead18e447

View file

@ -233,6 +233,8 @@ PRIVATE void master_create_worker(worker_t *wp, worker_id_t worker_id,
r = mthread_create(&wp->mthread, &attr, worker_thread, (void *) wp);
if (r != 0)
panic("blockdriver_mt: could not start thread %d (%d)", worker_id, r);
mthread_attr_destroy(&attr);
}
/*===========================================================================*