]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/rtc/rtc-dev.c
rtc: don't return -EBUSY when mutex_lock_interruptible() fails
[linux-2.6-omap-h63xx.git] / drivers / rtc / rtc-dev.c
index 0a870b7e5c323f5a5411f6c494545d33c023465c..ae3bd4de767549799c7f6faf439490fab2e35777 100644 (file)
@@ -221,7 +221,7 @@ static long rtc_dev_ioctl(struct file *file,
 
        err = mutex_lock_interruptible(&rtc->ops_lock);
        if (err)
-               return -EBUSY;
+               return err;
 
        /* check that the calling task has appropriate permissions
         * for certain ioctls. doing this check here is useful