--- a/master/cdev.c Fri Aug 08 12:09:37 2008 +0000 +++ b/master/cdev.c Fri Aug 08 12:44:40 2008 +0000 @@ -561,6 +561,7 @@ if (!(slave = ec_master_find_slave( master, 0, data.slave_position))) { + up(&master->master_sem); EC_ERR("Slave %u does not exist!\n", data.slave_position); return -EINVAL; }