Skip to contentSkip to conversation

expire_cleanup: check the return code form ops->askumount

PATCH New Jeff Moyer 1 participant 1 message Sep 4, 2009 Kernel automounter

lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 expire_cleanup: check the return code form ops->askumount

Hi, Ian,

This looks like a minor oversight.

Cheers,
Jeff

daemon/state.c +1 -1
index 2eeb4bf..27bc6de 100644
@@ -160,7 +160,7 @@ void expire_cleanup(void *arg)
 			 * been signaled to shutdown.
 			 */
 			rv = ops->askumount(ap->logopt, ap->ioctlfd, &idle);
-			if (!idle && !ap->shutdown) {
+			if (!rv && !idle && !ap->shutdown) {
 				next = ST_READY;
 				if (!ap->submount)
 					alarm_add(ap, ap->exp_runfreq);