projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rtc: don't return -EBUSY when mutex_lock_interruptible() fails
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
rtc
/
rtc-dev.c
diff --git
a/drivers/rtc/rtc-dev.c
b/drivers/rtc/rtc-dev.c
index 0a870b7e5c323f5a5411f6c494545d33c023465c..ae3bd4de767549799c7f6faf439490fab2e35777 100644
(file)
--- a/
drivers/rtc/rtc-dev.c
+++ b/
drivers/rtc/rtc-dev.c
@@
-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