Home Home > GIT Browse > SLE12-SP3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-04-24 11:43:40 +0200
committerJiri Slaby <jslaby@suse.cz>2019-04-24 11:43:40 +0200
commit45bbae6e9902b7ee4171f4cdfe65ae4ea90faa90 (patch)
treeee4f991365d531a8781b413d5f090fa75f74ec52
parentc42d65920a3ca34532f29a1cd15e6e7e80948cef (diff)
floppy: check_events callback should not return a negativeSLE12-SP3
number (git-fixes). suse-commit: 54fa1addd2d5ced567bea84d4b516562f095087a
-rw-r--r--drivers/block/floppy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 8f2691647b4c..05306fb6eef2 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -3755,7 +3755,7 @@ static unsigned int floppy_check_events(struct gendisk *disk,
if (time_after(jiffies, UDRS->last_checked + UDP->checkfreq)) {
if (lock_fdc(drive))
- return -EINTR;
+ return 0;
poll_drive(false, 0);
process_fd_request();
}