question on error return if poll is interrupted

From: Oliver Neukum
Date: Fri Jul 25 2008 - 05:40:36 EST


Hi,

is this code from the gspca driver correct:

if (mutex_lock_interruptible(&gspca_dev->queue_lock) != 0)
return POLLERR;

Shouldn't poll() return -EINTR ?

Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/