Fixed missing up().
authorFlorian Pose <fp@igh-essen.com>
Fri, 08 Aug 2008 12:44:40 +0000
changeset 1196 a27966f01b72
parent 1195 043d8fe76b8d
child 1197 f65f9c36ba33
Fixed missing up().
master/cdev.c
--- 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;
     }