Skip to contentSkip to conversation

timer fix for 4.5

GIT PULL Thomas Gleixner 1 participant 1 message Jan 11, 2016 Posix clocks and timers

lore
Share & tools
lore
#0 lore raw

Linus,

please pull the latest timers-urgent-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus

A single fix for the posix-clock poll code which did not make it into 4.4.

Thanks,

tglx

------------------>
Richard Cochran (1):
posix-clock: Fix return code on the poll method's error path

 kernel/time/posix-clock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/time/posix-clock.c +2 -2
index ce033c7aa2e8..9cff0ab82b63 100644
@@ -69,10 +69,10 @@ static ssize_t posix_clock_read(struct file *fp, char __user *buf,
 static unsigned int posix_clock_poll(struct file *fp, poll_table *wait)
 {
 	struct posix_clock *clk = get_posix_clock(fp);
-	int result = 0;
+	unsigned int result = 0;
 
 	if (!clk)
-		return -ENODEV;
+		return POLLERR;
 
 	if (clk->ops.poll)
 		result = clk->ops.poll(clk, fp, wait);