[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110524125147.0eb112b5@absol.kitzblitz>
Date: Tue, 24 May 2011 12:51:47 +0200
From: Nicolas Kaiser <nikai@...ai.net>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: Richard Cochran <richard.cochran@...cron.at>,
linux-kernel@...r.kernel.org
Subject: [PATCH] posix clocks: correct error value in posix_clock_poll()
Signed-off-by: Nicolas Kaiser <nikai@...ai.net>
---
It looks to me like -ENODEV might not be a good return value
in poll(). Would POLLERR be the correct one in this case?
kernel/time/posix-clock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/time/posix-clock.c b/kernel/time/posix-clock.c
index c340ca6..2424d3f 100644
--- a/kernel/time/posix-clock.c
+++ b/kernel/time/posix-clock.c
@@ -71,7 +71,7 @@ static unsigned int posix_clock_poll(struct file *fp, poll_table *wait)
int result = 0;
if (!clk)
- return -ENODEV;
+ return POLLERR;
if (clk->ops.poll)
result = clk->ops.poll(clk, fp, wait);
--
1.7.5.rc3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists